{% set version = '0.6-4' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/epimdr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/epimdr/epimdr_{{ version }}.tar.gz
  sha256: 5cd54e2dfbd69010e0b833ce220166c3fc8af6b52bdc75305ab26e7cd17f4096

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: ade4, bbmle, fields, forecast, imputeTS, lme4, ncf, nleqslv, nlme, nlts, plotrix, pomp, rootSolve, Rwave, statnet,
requirements:
  build:
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-desolve
    - r-polspline
    - r-shiny

  run:
    - r-base
    - r-desolve
    - r-polspline
    - r-shiny

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('epimdr')"           # [not win]
    - "\"%R%\" -e \"library('epimdr')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/objornstad/epimdr, https://www.springer.com/gp/book/9783319974866,
    http://ento.psu.edu/directory/onb1
  license: GPL-3
  summary: 'Functions, data sets and shiny apps for "Epidemics: Models and Data in R" by Ottar
    N. Bjornstad (ISBN 978-3-319-97487-3) <https://www.springer.com/gp/book/9783319974866>.
    The package contains functions to study the S(E)IR model, spatial and age-structured
    SIR models; time-series SIR and chain-binomial stochastic models; catalytic disease
    models; coupled map lattice models of spatial transmission and network models for
    social spread of infection. The package is also an advanced quantitative companion
    to the coursera Epidemics Massive Online Open Course <https://www.coursera.org/learn/epidemics>.'

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

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: epimdr
# Title: Functions and Data for "Epidemics: Models and Data in R"
# Version: 0.6-4
# Date: 2019-08-25
# Authors@R: person(c("Ottar", "N."), "Bjornstad", email = "onb1@psu.edu", role = c("aut", "cre"))
# Author: Ottar N. Bjornstad [aut, cre]
# Maintainer: Ottar N. Bjornstad <onb1@psu.edu>
# Description: Functions, data sets and shiny apps for "Epidemics: Models and Data in R" by Ottar N. Bjornstad (ISBN 978-3-319-97487-3) <https://www.springer.com/gp/book/9783319974866>. The package contains functions to study the S(E)IR model, spatial and age-structured SIR models; time-series SIR and chain-binomial stochastic models; catalytic disease models; coupled map lattice models of spatial transmission and network models for social spread of infection. The package is also an advanced quantitative companion to the coursera Epidemics Massive Online Open Course <https://www.coursera.org/learn/epidemics>.
# Depends: R (>= 3.3.2), shiny, deSolve, polspline
# Suggests: ade4, bbmle, fields, forecast, imputeTS, lme4, ncf, nleqslv, nlme, nlts, plotrix, pomp, rootSolve, Rwave, statnet,
# License: GPL-3
# URL: https://github.com/objornstad/epimdr, https://www.springer.com/gp/book/9783319974866, http://ento.psu.edu/directory/onb1
# BugReports: https://github.com/objornstad/epimdr/issues
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 6.1.1
# NeedsCompilation: no
# Packaged: 2019-08-25 22:28:34 UTC; onb1
# Repository: CRAN
# Date/Publication: 2019-08-26 04:20:02 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
