{% set version = "3.1-7" %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/RLRsim_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/RLRsim/RLRsim_{{ version }}.tar.gz
  sha256: 104a71619b7d59f43e743d58e7eb46aa125f84f64dfc1a09f8ce760149c6e502

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('m2w64_cxx') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rcpp >=0.11.1
    - r-lme4 >=1.1
    - r-mgcv
    - r-nlme
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.11.1
    - r-lme4 >=1.1
    - r-mgcv
    - r-nlme

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

about:
  home: https://github.com/fabian-s/RLRsim
  license: GPL-2.0-or-later
  summary: Rapid, simulation-based exact (restricted) likelihood ratio tests for testing the presence of variance components/nonparametric terms for models fit with nlme::lme(),lme4::lmer(), lmeTest::lmer(), gamm4::gamm4(), mgcv::gamm() and SemiPar::spm().
  license_family: GPL
  license_file: {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: RLRsim
# Type: Package
# Title: Exact (Restricted) Likelihood Ratio Tests for Mixed and Additive Models
# Version: 3.1-3
# Date: 2016-11-03
# Authors@R: c(person("Fabian", "Scheipl", role = c("aut", "cre"), email = "fabian.scheipl@stat.uni-muenchen.de"), person("Ben", "Bolker", role = "aut"))
# Maintainer: Fabian Scheipl <fabian.scheipl@stat.uni-muenchen.de>
# Description: Rapid, simulation-based exact (restricted) likelihood ratio tests for testing the presence of variance components/nonparametric terms for models fit with nlme::lme(),lme4::lmer(), lmeTest::lmer(), gamm4::gamm4(), mgcv::gamm() and SemiPar::spm().
# License: GPL
# URL: https://github.com/fabian-s/RLRsim
# BugReports: https://github.com/fabian-s/RLRsim/issues
# Depends: R (>= 2.14.0)
# Imports: Rcpp (>= 0.11.1), lme4 (>= 1.1), mgcv, nlme
# LinkingTo: Rcpp
# Enhances: SemiPar, lmerTest
# RoxygenNote: 5.0.1
# NeedsCompilation: yes
# Packaged: 2016-11-04 12:43:10 UTC; fabians
# Author: Fabian Scheipl [aut, cre], Ben Bolker [aut]
# Repository: CRAN
# Date/Publication: 2016-11-04 23:33:58
