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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/errum_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/errum/errum_{{ version }}.tar.gz
  sha256: 7f49cbcdaf88e1099956a03eb531bf4e71f7e954487277a974e4550badcbd9a1

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:
    - llvm-openmp                  # [osx]
    - r-base
    - r-rcpp >=1.0.0
    - r-rcpparmadillo >=0.9.200
    - libblas
    - libgomp      # [linux]
    - liblapack

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

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

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

  license: GPL-2.0-or-later
  summary: Perform a Bayesian estimation of the exploratory reduced reparameterized unified model
    (ErRUM) described by Culpepper and Chen (2018) <doi:10.3102/1076998618791306>.

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

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

# Package: errum
# Title: Exploratory Reduced Reparameterized Unified Model Estimation
# Version: 0.0.3
# 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("Jeffrey A.", "Douglas", email = "jeffdoug@illinois.edu", role = c("aut")) )
# Description: Perform a Bayesian estimation of the exploratory reduced reparameterized unified model (ErRUM) described by Culpepper and Chen (2018) <doi:10.3102/1076998618791306>.
# License: GPL (>= 2)
# URL: https://github.com/tmsalab/errum
# BugReports: https://github.com/tmsalab/errum/issues
# Depends: R (>= 3.5.0)
# Imports: Rcpp (>= 1.0.0)
# LinkingTo: Rcpp, RcppArmadillo (>= 0.9.200)
# Suggests: simcdm
# LazyData: true
# RoxygenNote: 7.1.0
# Encoding: UTF-8
# Language: en-US
# NeedsCompilation: yes
# Packaged: 2020-03-20 03:16:08 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>), Jeffrey A. Douglas [aut]
# Maintainer: James Joseph Balamuta <balamut2@illinois.edu>
# Repository: CRAN
# Date/Publication: 2020-03-20 09:50:05 UTC
