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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/lmtest_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/lmtest/lmtest_{{ version }}.tar.gz
  sha256: ddc929f94bf055974832fa4a20fdd0c1eb3a84ee11f716c287936f2141d5ca0a

build:
  merge_build_host: True  # [win]
  number: 3
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-zoo
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-zoo

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

about:
  home: https://CRAN.R-project.org/package=lmtest
  license: GPL-2 | GPL-3
  summary: A collection of tests, data sets, and examples for diagnostic checking in linear regression
    models. Furthermore, some generic tools for inference in parametric models are provided.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: lmtest
# Title: Testing Linear Regression Models
# Version: 0.9-37
# Date: 2019-04-30
# Authors@R: c(person(given = "Torsten", family = "Hothorn", role = "aut", email = "Torsten.Hothorn@R-project.org", comment = c(ORCID = "0000-0001-8301-0471")), person(given = "Achim", family = "Zeileis", role = c("aut", "cre"), email = "Achim.Zeileis@R-project.org", comment = c(ORCID = "0000-0003-0918-3766")), person(given = c("Richard", "W."), family = "Farebrother", role = "aut", comment = "pan.f"), person(given = "Clint", family = "Cummins", role = "aut", comment = "pan.f"), person(given = "Giovanni", family = "Millo", role = "ctb"), person(given = "David", family = "Mitchell", role = "ctb"))
# Description: A collection of tests, data sets, and examples for diagnostic checking in linear regression models. Furthermore, some generic tools for inference in parametric models are provided.
# LazyData: yes
# Depends: R (>= 3.0.0), stats, zoo
# Suggests: car, strucchange, sandwich, dynlm, stats4, survival, AER
# Imports: graphics
# License: GPL-2 | GPL-3
# NeedsCompilation: yes
# Packaged: 2019-04-30 08:26:56 UTC; zeileis
# Author: Torsten Hothorn [aut] (<https://orcid.org/0000-0001-8301-0471>), Achim Zeileis [aut, cre] (<https://orcid.org/0000-0003-0918-3766>), Richard W. Farebrother [aut] (pan.f), Clint Cummins [aut] (pan.f), Giovanni Millo [ctb], David Mitchell [ctb]
# Maintainer: Achim Zeileis <Achim.Zeileis@R-project.org>
# Repository: CRAN
# Date/Publication: 2019-04-30 08:41:38 UTC
