{% set version = "0.8.6.2" %}

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

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

source:
  fn: jmv_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/jmv_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/jmv/jmv_{{ version }}.tar.gz
  sha256: 7680ae0d413bd719ed5adeec6cb4520f866ed464be26a33273aca04f4db4c32a

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

requirements:
  build:
    - r-base
    - r-bayesfactor
    - r-ggally
    - r-gparotation
    - r-mass
    - r-pmcmr
    - r-r6
    - r-rocr
    - r-afex
    - r-car
    - r-emmeans >=1.1.2
    - r-ggplot2 >=2.2.1
    - r-ggridges
    - r-jmvcore >=0.8.5
    - r-lavaan
    - r-multcomp
    - r-mvnormtest
    - r-nnet
    - r-psych >=1.7.5
    - r-vcd
    - r-vcdextra

  run:
    - r-base
    - r-bayesfactor
    - r-ggally
    - r-gparotation
    - r-mass
    - r-pmcmr
    - r-r6
    - r-rocr
    - r-afex
    - r-car
    - r-emmeans >=1.1.2
    - r-ggplot2 >=2.2.1
    - r-ggridges
    - r-jmvcore >=0.8.5
    - r-lavaan
    - r-multcomp
    - r-mvnormtest
    - r-nnet
    - r-psych >=1.7.5
    - r-vcd
    - r-vcdextra

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

about:
  home: https://CRAN.R-project.org/package=jmv
  license: GPL (>= 2)
  summary: "A suite of common statistical methods such as descriptives, t-tests, ANOVAs, regression,
    correlation matrices, proportion tests, contingency tables, and factor analysis.
    This package is also useable from the 'jamovi' statistical spreadsheet
    (see <https://www.jamovi.org> for more information)."
  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
