diff --git a/recipes/r-tinkr/bld.bat b/recipes/r-tinkr/bld.bat new file mode 100644 index 0000000000000..01bc5eadf1152 --- /dev/null +++ b/recipes/r-tinkr/bld.bat @@ -0,0 +1,2 @@ +"%R%" CMD INSTALL --build . %R_ARGS% +IF %ERRORLEVEL% NEQ 0 exit /B 1 diff --git a/recipes/r-tinkr/build.sh b/recipes/r-tinkr/build.sh new file mode 100644 index 0000000000000..b8d2635525637 --- /dev/null +++ b/recipes/r-tinkr/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export DISABLE_AUTOBREW=1 +${R} CMD INSTALL --build . ${R_ARGS} diff --git a/recipes/r-tinkr/meta.yaml b/recipes/r-tinkr/meta.yaml new file mode 100644 index 0000000000000..820e146e2dfe1 --- /dev/null +++ b/recipes/r-tinkr/meta.yaml @@ -0,0 +1,72 @@ +{% set version = '0.2.0' %} +{% set posix = 'm2-' if win else '' %} + +package: + name: r-tinkr + version: {{ version|replace("-", "_") }} + +source: + url: + - {{ cran_mirror }}/src/contrib/tinkr_{{ version }}.tar.gz + - {{ cran_mirror }}/src/contrib/Archive/tinkr/tinkr_{{ version }}.tar.gz + sha256: f8b7823e4b97822b576660c2535fdf753e249120067f8394695ef10714a91e19 + +build: + number: 0 + noarch: generic + rpaths: + - lib/R/lib/ + - lib/ + missing_dso_whitelist: + - '*/R.dll' # [win] + - '*/Rblas.dll' # [win] + - '*/Rlapack.dll' # [win] + +requirements: + build: + - {{ posix }}zip # [win] + - cross-r-base {{ r_base }} # [build_platform != target_platform] + host: + - r-base + - r-r6 + - r-commonmark >=1.6 + - r-glue + - r-magrittr + - r-purrr + - r-xml2 + - r-xslt + - r-yaml + run: + - r-base + - r-r6 + - r-commonmark >=1.6 + - r-glue + - r-magrittr + - r-purrr + - r-xml2 + - r-xslt + - r-yaml + +test: + commands: + - $R -e "library('tinkr')" # [not win] + - "\"%R%\" -e \"library('tinkr')\"" # [win] + +about: + home: https://docs.ropensci.org/tinkr/, https://github.com/ropensci/tinkr + license: GPL-3.0-or-later + summary: Parsing '(R)Markdown' files with numerous regular expressions can be fraught with + peril, but it does not have to be this way. Converting '(R)Markdown' files to 'XML' + using the 'commonmark' package allows in-memory editing via of 'markdown' elements + via 'XPath' through the extensible 'R6' class called 'yarn'. These modified 'XML' + representations can be written to '(R)Markdown' documents via an 'xslt' stylesheet + which implements an extended version of 'GitHub'-flavoured 'markdown' so that you + can tinker to your hearts content. + license_family: GPL3 + license_file: + - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' + +extra: + recipe-maintainers: + - conda-forge/r + - matthewfeickert