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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rrum_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rrum/rrum_{{ version }}.tar.gz
  sha256: a73e6e2375a0fce1b7ed17f650fb91a8c1b705461e6d634f474bb84882150e70

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
    - r-rgen
    - r-simcdm >=0.1.0
    - libblas
    - libgomp      # [linux]
    - liblapack

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

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

about:
  home: https://CRAN.R-project.org/package=rrum
  license: GPL-2.0-or-later
  summary: 'Implementation of Gibbs sampling algorithm for Bayesian Estimation of the Reduced
    Reparameterized Unified Model (''rrum''), described by Culpepper and Hudson (2017)
    <doi: 10.1177/0146621617707511>.'

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

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

# Package: rrum
# Type: Package
# Title: Bayesian Estimation of the Reduced Reparameterized Unified Model with Gibbs Sampling
# Version: 0.2.0
# Authors@R: c( 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("aut", "cph"), comment = c(ORCID = "0000-0002-9731-2224") ), person("James Joseph", "Balamuta", email = "balamut2@illinois.edu", role = c("aut", "cph", "cre"), comment = c(ORCID = "0000-0003-2826-8458") ) )
# Description: Implementation of Gibbs sampling algorithm for Bayesian Estimation of the Reduced Reparameterized Unified Model ('rrum'), described by Culpepper and Hudson (2017) <doi: 10.1177/0146621617707511>.
# License: GPL (>= 2)
# Depends: R (>= 3.4.0), simcdm (>= 0.1.0)
# Imports: Rcpp (>= 1.0.0)
# LinkingTo: Rcpp, RcppArmadillo (>= 0.9.200), rgen, simcdm
# RoxygenNote: 6.1.1
# Suggests: testthat, covr
# SystemRequirements: C++11
# Encoding: UTF-8
# NeedsCompilation: yes
# Packaged: 2019-02-05 22:55:59 UTC; ronin
# Author: Steven Andrew Culpepper [aut, cph] (<https://orcid.org/0000-0003-4226-6176>), Aaron Hudson [aut, cph] (<https://orcid.org/0000-0002-9731-2224>), James Joseph Balamuta [aut, cph, cre] (<https://orcid.org/0000-0003-2826-8458>)
# Maintainer: James Joseph Balamuta <balamut2@illinois.edu>
# Repository: CRAN
# Date/Publication: 2019-02-11 16:10:05 UTC
