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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/RxODE_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/RxODE/RxODE_{{ version }}.tar.gz
  sha256: e491dedcd8a1cdc2bd531febafb24ae1b96a95a5158279c9885f2330391ad6fa

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/
  skip: true  # [r_base == "3.5.1"]

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}sed               # [win]
    - {{posix}}grep              # [win]
    - {{posix}}autoconf
    - {{posix}}automake          # [not win]
    - {{posix}}automake-wrapper  # [win]
    - {{posix}}pkg-config
    - {{posix}}make
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - _openmp_mutex              # [linux]
    - libblas
    - liblapack
    - r-base
    - r-matrix
    - r-precisesums >=0.3
    - r-rcpp >=0.12.3
    - r-rcpparmadillo >=0.9.300.2.0
    - r-assertthat
    - r-brew
    - r-cli
    - r-dparser >=0.1.8
    - r-ggplot2
    - r-inline
    - r-knitr
    - r-lotri
    - r-magrittr
    - r-memoise
    - r-mvnfast
    - r-pillar
    - r-rex
    - r-sys
    - r-units >=0.6_0
  run:
    - _openmp_mutex              # [linux]
    - llvm-openmp                # [osx]
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-matrix
    - r-precisesums >=0.3
    - r-rcpp >=0.12.3
    - r-rcpparmadillo >=0.9.300.2.0
    - r-assertthat
    - r-brew
    - r-cli
    - r-dparser >=0.1.8
    - r-ggplot2
    - r-inline
    - r-knitr
    - r-lotri
    - r-magrittr
    - r-memoise
    - r-mvnfast
    - r-pillar
    - r-rex
    - r-sys
    - r-units >=0.6_0

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

about:
  home: https://nlmixrdevelopment.github.io/RxODE/
  license: GPL-3
  summary: 'Facilities for running simulations from ordinary differential equation (ODE) models,
    such as pharmacometrics and other compartmental models.  A compilation manager translates
    the ODE model into C, compiles it, and dynamically loads the object code into R
    for improved computational efficiency.  An event table object facilitates the specification
    of complex dosing regimens (optional) and sampling schedules.  NB: The use of this
    package requires both C and Fortran compilers, for details on their use with R please
    see Section 6.3, Appendix A, and Appendix D in the "R Administration and Installation"
    manual. Also the code is mostly released under GPL.  The VODE and LSODA are in the
    public domain.  The information is available in the inst/COPYRIGHTS. You can also
    obtain the archived SnakeCharmR for python integration from CRAN archives <https://cran.r-project.org/src/contrib/Archive/SnakeCharmR/>
    or <https://github.com/nlmixrdevelopment/SnakeCharmR>.'
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: RxODE
# Version: 0.9.2-0
# Title: Facilities for Simulating from ODE-Based Models
# Authors@R: c( person("Matthew L.","Fidler", role = c("aut"), email = "matthew.fidler@gmail.com", comment=c(ORCID="0000-0001-8538-6691")), person("Melissa", "Hallow", role = "aut", email = "hallowkm@uga.edu"), person("Wenping", "Wang", role = c("aut", "cre"), email = "wwang8198@gmail.com"), person("Zufar", "Mulyukov", role="ctb", email="zufar.mulyukov@novartis.com"), person("Justin", "Wilkins", role = "ctb", email = "justin.wilkins@occams.com", comment=c(ORCID="0000-0002-7099-9396")), person("Simon", "Frost", role="ctb"), person("Goro", "Fuji",  role="ctb", email="gfuji@cpan.org"), person("Morwenn","", role="ctb"), person("Heng", "Li", role="ctb"), person("Yu", "Feng", role="ctb"), person("Alan", "Hindmarsh",role="ctb"), person("Linda", "Petzold", role="ctb"), person("Ernst", "Hairer", role="ctb"), person("Gerhard", "Wanner", role="ctb"), person("J", "Colinge", role="ctb"), person("Hadley", "Wickham", role="ctb"), person("G", "Grothendieck", role="ctb"), person("Robert", "Gentleman",role="ctb"), person("Daniel C.", "Dillon", role="ctb"), person("Ross", "Ihaka", role="ctb"), person("Cleve", "Moler", role="ctb"), person("Jack", "Dongarra", role="ctb"), person("R core team", role="cph") )
# Maintainer: Wenping Wang <wwang8198@gmail.com>
# Depends: R (>= 3.6.0)
# Suggests: DT, data.table (>= 1.12.4), nlme, shiny, tcltk, testthat, usethis, devtools, covr, rmarkdown, SnakeCharmR, dplyr (>= 0.8.0), tidyr, tibble, curl, gridExtra, microbenchmark, scales, stringi, htmltools, reticulate, rlang, installr, learnr, remotes, crayon, xgxr, digest, vdiffr, ggrepel
# Imports: knitr, Matrix, PreciseSums (>= 0.3), Rcpp (>= 0.12.3), brew, cli, dparser (>= 0.1.8), ggplot2, inline, magrittr, memoise, methods, mvnfast, pillar, rex, sys, units(>= 0.6-0), utils, assertthat, lotri
# Description: Facilities for running simulations from ordinary differential equation (ODE) models, such as pharmacometrics and other compartmental models.  A compilation manager translates the ODE model into C, compiles it, and dynamically loads the object code into R for improved computational efficiency.  An event table object facilitates the specification of complex dosing regimens (optional) and sampling schedules.  NB: The use of this package requires both C and Fortran compilers, for details on their use with R please see Section 6.3, Appendix A, and Appendix D in the "R Administration and Installation" manual. Also the code is mostly released under GPL.  The VODE and LSODA are in the public domain.  The information is available in the inst/COPYRIGHTS. You can also obtain the archived SnakeCharmR for python integration from CRAN archives <https://cran.r-project.org/src/contrib/Archive/SnakeCharmR/> or <https://github.com/nlmixrdevelopment/SnakeCharmR>.
# BugReports: https://github.com/nlmixrdevelopment/RxODE/issues
# NeedsCompilation: yes
# VignetteBuilder: knitr
# License: GPL (>= 3)
# URL: https://nlmixrdevelopment.github.io/RxODE/
# RoxygenNote: 7.0.2
# Biarch: true
# LinkingTo: dparser(>= 0.1.8), Rcpp (>= 0.12.3), RcppArmadillo(>= 0.9.300.2.0), PreciseSums (>= 0.3)
# Encoding: UTF-8
# LazyData: true
# Language: en-US
# Packaged: 2020-03-12 21:17:19 UTC; annie
# Author: Matthew L. Fidler [aut] (<https://orcid.org/0000-0001-8538-6691>), Melissa Hallow [aut], Wenping Wang [aut, cre], Zufar Mulyukov [ctb], Justin Wilkins [ctb] (<https://orcid.org/0000-0002-7099-9396>), Simon Frost [ctb], Goro Fuji [ctb], Morwenn [ctb], Heng Li [ctb], Yu Feng [ctb], Alan Hindmarsh [ctb], Linda Petzold [ctb], Ernst Hairer [ctb], Gerhard Wanner [ctb], J Colinge [ctb], Hadley Wickham [ctb], G Grothendieck [ctb], Robert Gentleman [ctb], Daniel C. Dillon [ctb], Ross Ihaka [ctb], Cleve Moler [ctb], Jack Dongarra [ctb], R core team [cph]
# Repository: CRAN
# Date/Publication: 2020-03-13 07:10:14 UTC
