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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rmarkdown_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rmarkdown/rmarkdown_{{ version }}.tar.gz
  sha256: d7f7059bfcb43e4b92432d69ba0e0c74ad10a20f153689262a3e848adb60159d

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

requirements:
  build:
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-bslib >=0.2.5.1
    - r-evaluate >=0.13
    - r-htmltools >=0.5.1
    - r-jquerylib
    - r-jsonlite
    - r-knitr >=1.22
    - r-stringr >=1.2.0
    - r-tinytex >=0.31
    - r-xfun >=0.30
    - r-yaml >=2.1.19
  run:
    - r-base
    - r-bslib >=0.2.5.1
    - r-evaluate >=0.13
    - r-htmltools >=0.5.1
    - r-jquerylib
    - r-jsonlite
    - r-knitr >=1.22
    - r-stringr >=1.2.0
    - r-tinytex >=0.31
    - r-xfun >=0.30
    - r-yaml >=2.1.19
    - pandoc >=1.14,<3.0

test:
  requires:
    - xorg-libxt                             # [not win]
    - xorg-libsm                             # [not win]
  commands:
    - $R -e "library('rmarkdown')"           # [not win]
    - "\"%R%\" -e \"library('rmarkdown')\""  # [win]
    - $R -e "capabilities()" || true         # [not win]
    - $R -e "grSoftVersion()" || true        # [not win]
    - $R -e "x <- tempfile(fileext = '.Rmd'); file.create(x); rmarkdown::render(x)"  # [not win]
    - "\"%R%\" -e \"x <- tempfile(fileext = '.Rmd'); file.create(x); rmarkdown::render(x)\""  # [win]

about:
  home: https://github.com/rstudio/rmarkdown, https://pkgs.rstudio.com/rmarkdown/
  license: GPL-3.0-only
  summary: Convert R Markdown documents into a variety of formats.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r
    - mdehollander
    - bsennblad
    - philip-khor
    - jdblischak

# Package: rmarkdown
# Title: Dynamic Documents for R
# Version: 2.13
# Authors@R: c( person("JJ", "Allaire", , "jj@rstudio.com", role = "aut"), person("Yihui", "Xie", , "xie@yihui.name", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-0645-5666")), person("Jonathan", "McPherson", , "jonathan@rstudio.com", role = "aut"), person("Javier", "Luraschi", , "javier@rstudio.com", role = "aut"), person("Kevin", "Ushey", , "kevin@rstudio.com", role = "aut"), person("Aron", "Atkins", , "aron@rstudio.com", role = "aut"), person("Hadley", "Wickham", , "hadley@rstudio.com", role = "aut"), person("Joe", "Cheng", , "joe@rstudio.com", role = "aut"), person("Winston", "Chang", , "winston@rstudio.com", role = "aut"), person("Richard", "Iannone", , "rich@rstudio.com", role = "aut", comment = c(ORCID = "0000-0003-3925-190X")), person("Andrew", "Dunning", role = "ctb", comment = c(ORCID = "0000-0003-0464-5036")), person("Atsushi", "Yasumoto", role = c("ctb", "cph"), comment = c(ORCID = "0000-0002-8335-495X", cph = "Number sections Lua filter")), person("Barret", "Schloerke", role = "ctb"), person("Carson", "Sievert", role = "ctb", comment = c(ORCID = "0000-0002-4958-2844")), person("Christophe", "Dervieux", role = "ctb"), person("Devon", "Ryan", , "dpryan79@gmail.com", role = "ctb", comment = c(ORCID = "0000-0002-8549-0971")), person("Frederik", "Aust", , "frederik.aust@uni-koeln.de", role = "ctb", comment = c(ORCID = "0000-0003-4900-788X")), person("Jeff", "Allen", , "jeff@rstudio.com", role = "ctb"), person("JooYoung", "Seo", role = "ctb", comment = c(ORCID = "0000-0002-4064-6012")), person("Malcolm", "Barrett", role = "ctb"), person("Rob", "Hyndman", , "Rob.Hyndman@monash.edu", role = "ctb"), person("Romain", "Lesur", role = "ctb"), person("Roy", "Storey", role = "ctb"), person("Ruben", "Arslan", , "ruben.arslan@uni-goettingen.de", role = "ctb"), person("Sergio", "Oller", role = "ctb"), person(, "RStudio, PBC", role = "cph"), person(, "jQuery UI contributors", role = c("ctb", "cph"), comment = "jQuery UI library; authors listed in inst/rmd/h/jqueryui-AUTHORS.txt"), person("Mark", "Otto", role = "ctb", comment = "Bootstrap library"), person("Jacob", "Thornton", role = "ctb", comment = "Bootstrap library"), person(, "Bootstrap contributors", role = "ctb", comment = "Bootstrap library"), person(, "Twitter, Inc", role = "cph", comment = "Bootstrap library"), person("Alexander", "Farkas", role = c("ctb", "cph"), comment = "html5shiv library"), person("Scott", "Jehl", role = c("ctb", "cph"), comment = "Respond.js library"), person("Ivan", "Sagalaev", role = c("ctb", "cph"), comment = "highlight.js library"), person("Greg", "Franko", role = c("ctb", "cph"), comment = "tocify library"), person("John", "MacFarlane", role = c("ctb", "cph"), comment = "Pandoc templates"), person(, "Google, Inc.", role = c("ctb", "cph"), comment = "ioslides library"), person("Dave", "Raggett", role = "ctb", comment = "slidy library"), person(, "W3C", role = "cph", comment = "slidy library"), person("Dave", "Gandy", role = c("ctb", "cph"), comment = "Font-Awesome"), person("Ben", "Sperry", role = "ctb", comment = "Ionicons"), person(, "Drifty", role = "cph", comment = "Ionicons"), person("Aidan", "Lister", role = c("ctb", "cph"), comment = "jQuery StickyTabs"), person("Benct Philip", "Jonsson", role = c("ctb", "cph"), comment = "pagebreak Lua filter"), person("Albert", "Krewinkel", role = c("ctb", "cph"), comment = "pagebreak Lua filter") )
# Maintainer: Yihui Xie <xie@yihui.name>
# Description: Convert R Markdown documents into a variety of formats.
# License: GPL-3
# URL: https://github.com/rstudio/rmarkdown, https://pkgs.rstudio.com/rmarkdown/
# BugReports: https://github.com/rstudio/rmarkdown/issues
# Depends: R (>= 3.0)
# Imports: bslib (>= 0.2.5.1), evaluate (>= 0.13), htmltools (>= 0.3.5), jquerylib, jsonlite, knitr (>= 1.22), methods, stringr (>= 1.2.0), tinytex (>= 0.31), tools, utils, xfun (>= 0.30), yaml (>= 2.1.19)
# Suggests: digest, dygraphs, fs, rsconnect, downlit (>= 0.4.0), katex (>= 1.4.0), sass (>= 0.4.0), shiny (>= 1.6.0), testthat (>= 3.0.3), tibble, tufte, vctrs, withr (>= 2.4.2)
# VignetteBuilder: knitr
# Config/Needs/website: rstudio/quillt, pkgdown
# Encoding: UTF-8
# RoxygenNote: 7.1.2
# SystemRequirements: pandoc (>= 1.14) - http://pandoc.org
# NeedsCompilation: no
# Packaged: 2022-03-09 15:21:20 UTC; yihui
# Author: JJ Allaire [aut], Yihui Xie [aut, cre] (<https://orcid.org/0000-0003-0645-5666>), Jonathan McPherson [aut], Javier Luraschi [aut], Kevin Ushey [aut], Aron Atkins [aut], Hadley Wickham [aut], Joe Cheng [aut], Winston Chang [aut], Richard Iannone [aut] (<https://orcid.org/0000-0003-3925-190X>), Andrew Dunning [ctb] (<https://orcid.org/0000-0003-0464-5036>), Atsushi Yasumoto [ctb, cph] (<https://orcid.org/0000-0002-8335-495X>, Number sections Lua filter), Barret Schloerke [ctb], Carson Sievert [ctb] (<https://orcid.org/0000-0002-4958-2844>), Christophe Dervieux [ctb], Devon Ryan [ctb] (<https://orcid.org/0000-0002-8549-0971>), Frederik Aust [ctb] (<https://orcid.org/0000-0003-4900-788X>), Jeff Allen [ctb], JooYoung Seo [ctb] (<https://orcid.org/0000-0002-4064-6012>), Malcolm Barrett [ctb], Rob Hyndman [ctb], Romain Lesur [ctb], Roy Storey [ctb], Ruben Arslan [ctb], Sergio Oller [ctb], RStudio, PBC [cph], jQuery UI contributors [ctb, cph] (jQuery UI library; authors listed in inst/rmd/h/jqueryui-AUTHORS.txt), Mark Otto [ctb] (Bootstrap library), Jacob Thornton [ctb] (Bootstrap library), Bootstrap contributors [ctb] (Bootstrap library), Twitter, Inc [cph] (Bootstrap library), Alexander Farkas [ctb, cph] (html5shiv library), Scott Jehl [ctb, cph] (Respond.js library), Ivan Sagalaev [ctb, cph] (highlight.js library), Greg Franko [ctb, cph] (tocify library), John MacFarlane [ctb, cph] (Pandoc templates), Google, Inc. [ctb, cph] (ioslides library), Dave Raggett [ctb] (slidy library), W3C [cph] (slidy library), Dave Gandy [ctb, cph] (Font-Awesome), Ben Sperry [ctb] (Ionicons), Drifty [cph] (Ionicons), Aidan Lister [ctb, cph] (jQuery StickyTabs), Benct Philip Jonsson [ctb, cph] (pagebreak Lua filter), Albert Krewinkel [ctb, cph] (pagebreak Lua filter)
# Repository: CRAN
# Date/Publication: 2022-03-10 10:00:02 UTC
