{% set version = '0.3.0' %}

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

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

source:
  fn: merTools_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/merTools_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/merTools/merTools_{{ version }}.tar.gz
  sha256: a3d7c2566dfd40df04d2119092b5912bf289fc89db688783dbb1561eea1783cd

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

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

requirements:
  build:
    - r-base
    - r-dt
    - r-abind
    - r-arm
    - r-blme
    - r-broom
    - r-dplyr
    - r-ggplot2
    - r-lme4 >=1.1_11
    - r-mvtnorm
    - r-shiny

  run:
    - r-base
    - r-dt
    - r-abind
    - r-arm
    - r-blme
    - r-broom
    - r-dplyr
    - r-ggplot2
    - r-lme4 >=1.1_11
    - r-mvtnorm
    - r-shiny

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

about:
  home: https://CRAN.R-project.org/package=merTools
  license: GPL (>= 2)
  summary: Provides methods for extracting results from mixed-effect model objects fit with the
    'lme4' package. Allows construction of prediction intervals efficiently from large
    scale linear and generalized linear mixed-effects models.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - ccwang002
