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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/simcdm_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/simcdm/simcdm_{{ version }}.tar.gz
  sha256: 39f0c164e9e6b333dffb9b19a785a30ab56d36bcef9b19004a0e6f3bfeedfde3

build:
  merge_build_host: True  # [win]
  number: 0

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-rcpp >=1.0.0
    - r-rcpparmadillo >=0.9.200
    - libblas
    - libgomp      # [linux]

  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=1.0.0
    - r-rcpparmadillo >=0.9.200

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

about:
  home: https://github.com/tmsalab/simcdm

  license: GPL-2.0-or-later
  summary: 'Provides efficient R and ''C++'' routines to simulate cognitive diagnostic model
    data for Deterministic Input, Noisy "And" Gate (''DINA'') and reduced Reparameterized
    Unified Model (''rRUM'') from Culpepper and Hudson (2017) <doi: 10.1177/0146621617707511>,
    Culpepper (2015) <doi:10.3102/1076998615595403>, and de la Torre (2009) <doi:10.3102/1076998607309474>.'

  license_family: GPL-2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

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

# Package: simcdm
# Type: Package
# Title: Simulate Cognitive Diagnostic Model ('CDM') Data
# Version: 0.1.1
# Authors@R: c(person("James Joseph", "Balamuta", email = "balamut2@illinois.edu", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0003-2826-8458") ), person("Steven Andrew", "Culpepper", email = "sculpepp@illinois.edu", role = c("aut", "cph"), comment = c(ORCID = "0000-0003-4226-6176") ), person("Aaron", "Hudson", email = "awhudson@uw.edu", role = c("ctb", "cph"), comment = c(ORCID = "0000-0002-9731-2224") ) )
# Description: Provides efficient R and 'C++' routines to simulate cognitive diagnostic model data for Deterministic Input, Noisy "And" Gate ('DINA') and reduced Reparameterized Unified Model ('rRUM') from Culpepper and Hudson (2017) <doi: 10.1177/0146621617707511>, Culpepper (2015) <doi:10.3102/1076998615595403>, and de la Torre (2009) <doi:10.3102/1076998607309474>.
# Depends: R (>= 3.4.0)
# Imports: Rcpp (>= 1.0.0)
# LinkingTo: Rcpp, RcppArmadillo (>= 0.9.200)
# URL: https://github.com/tmsalab/simcdm
# BugReports: https://github.com/tmsalab/simcdm/issues
# License: GPL (>= 2)
# RoxygenNote: 6.1.1
# Encoding: UTF-8
# Suggests: testthat, covr, knitr, rmarkdown
# VignetteBuilder: knitr
# NeedsCompilation: yes
# Packaged: 2019-03-10 04:16:20 UTC; ronin
# Author: James Joseph Balamuta [aut, cre, cph] (<https://orcid.org/0000-0003-2826-8458>), Steven Andrew Culpepper [aut, cph] (<https://orcid.org/0000-0003-4226-6176>), Aaron Hudson [ctb, cph] (<https://orcid.org/0000-0002-9731-2224>)
# Maintainer: James Joseph Balamuta <balamut2@illinois.edu>
# Repository: CRAN
# Date/Publication: 2019-03-10 06:00:03 UTC
