{% set version = '2.0-33' %}

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

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

source:
  fn: lmerTest_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/lmerTest_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/lmerTest/lmerTest_{{ version }}.tar.gz
  sha256: 15d1371f40a4c9f22c39c390c3f8141e402889cd56c02b390cc4423370e78be4

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-hmisc
    - r-mass
    - r-matrix
    - r-ggplot2
    - r-lme4 >=1.0
    - r-plyr

  run:
    - r-base
    - r-hmisc
    - r-mass
    - r-matrix
    - r-ggplot2
    - r-lme4 >=1.0
    - r-plyr

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

about:
  home: https://CRAN.R-project.org/package=lmerTest
  license: GPL (>= 2)
  summary: Different kinds of tests for linear mixed effects models as implemented  in 'lme4'
    package are provided. The tests comprise types I - III F tests  for fixed effects,
    LR tests for random effects.  The package also provides the calculation of population
    means for fixed factors  with confidence intervals  and corresponding plots. Finally
    the backward  elimination of non-significant effects is implemented.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
