{% set version = '1.6-5' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-plm
  version: {{ version|replace("-", "_") }}

source:
  fn: plm_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/plm_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/plm/plm_{{ version }}.tar.gz
  sha256: a2df49b3c1210fbfcaf868c67b0368c5fab9ccc6141a5460341cb5f0fabff103

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-formula >=0.2_0
    - r-mass
    - r-bdsmatrix
    - r-car
    - r-lattice
    - r-lmtest
    - r-nlme
    - r-sandwich
    - r-zoo
  run:
    - r-base
    - r-formula >=0.2_0
    - r-mass
    - r-bdsmatrix
    - r-car
    - r-lattice
    - r-lmtest
    - r-nlme
    - r-sandwich
    - r-zoo

test:
  commands:
    - $R -e "library('plm')"  # [not win]
    - "\"%R%\" -e \"library('plm')\""  # [win]

about:
  home: https://cran.r-project.org/package=plm, https://r-forge.r-project.org/projects/plm/
  license: GPL (>= 2)
  summary: A set of estimators and tests for panel data.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
