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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rstantools_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rstantools/rstantools_{{ version }}.tar.gz
  sha256: c95b15de8ec577eeb24bb5206e7b685d882f88b5e6902efda924b7217f463d2d

build:
  merge_build_host: true  # [win]
  number: 0
  #noarch: generic
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rcpp >=0.12.16
    - r-rcppparallel >=5.0.1
    - r-desc
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=0.12.16
    - r-rcppparallel >=5.0.1
    - r-desc

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

about:
  home: https://mc-stan.org/rstantools/, https://discourse.mc-stan.org/
  license: GPL-3.0-only
  summary: Provides various tools for developers of R packages interfacing with 'Stan' <https://mc-stan.org>, including functions to set up the required package structure, S3 generics and default methods to unify function naming across 'Stan'-based R packages, and vignettes with recommendations for developers.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: rstantools
# Type: Package
# Title: Tools for Developing R Packages Interfacing with 'Stan'
# Version: 2.0.0
# Date: 2019-09-13
# Authors@R: c(person(given = "Jonah", family = "Gabry", role = c("aut", "cre"), email = "jsg2201@columbia.edu"), person(given = "Ben", family = "Goodrich", role = "aut", email = "benjamin.goodrich@columbia.edu"), person(given = "Martin", family = "Lysy", role = "aut", email = "mlysy@uwaterloo.ca"), person(given = "Stefan", family = "Siegert", role = "ctb"), person(given = "Trustees of", family = "Columbia University", role = "cph"))
# Description: Provides various tools for developers of R packages interfacing with 'Stan' <https://mc-stan.org>, including functions to set up the required package structure, S3 generics and default methods to unify function naming across 'Stan'-based R packages, and vignettes with recommendations for developers.
# License: GPL (>= 3)
# URL: https://mc-stan.org/rstantools/, https://discourse.mc-stan.org/
# BugReports: https://github.com/stan-dev/rstantools/issues
# Encoding: UTF-8
# LazyData: true
# SystemRequirements: pandoc, C++14
# Imports: stats, utils, Rcpp (>= 0.12.16), desc
# Suggests: rstan (>= 2.17.2), usethis (>= 1.5.1), testthat (>= 2.0.0), knitr, pkgbuild, pkgload, roxygen2 (>= 6.0.1), rmarkdown, rstudioapi
# RoxygenNote: 6.1.1
# VignetteBuilder: knitr
# NeedsCompilation: no
# Packaged: 2019-09-13 22:26:48 UTC; jgabry
# Author: Jonah Gabry [aut, cre], Ben Goodrich [aut], Martin Lysy [aut], Stefan Siegert [ctb], Trustees of Columbia University [cph]
# Maintainer: Jonah Gabry <jsg2201@columbia.edu>
# Repository: CRAN
# Date/Publication: 2019-09-15 00:10:05 UTC
