From 09eb79b57168cdf756ca6ca9bd4dfedf00122320 Mon Sep 17 00:00:00 2001
From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>
Date: Wed, 3 Nov 2021 18:05:28 +0100
Subject: r-reprex: add 2.0.1 (#27174)
---
.../repos/builtin/packages/r-reprex/package.py | 38 +++++++++++++++-------
1 file changed, 26 insertions(+), 12 deletions(-)
diff --git a/var/spack/repos/builtin/packages/r-reprex/package.py b/var/spack/repos/builtin/packages/r-reprex/package.py
index 91467dc258..f3ed5cded4 100644
--- a/var/spack/repos/builtin/packages/r-reprex/package.py
+++ b/var/spack/repos/builtin/packages/r-reprex/package.py
@@ -7,18 +7,20 @@ from spack import *
class RReprex(RPackage):
- """Convenience wrapper that uses the 'rmarkdown' package to render small
- snippets of code to target formats that include both code and output.
- The goal is to encourage the sharing of small, reproducible, and
- runnable examples on code-oriented websites, such as
- and , or in email.
- 'reprex' also extracts clean, runnable R code from various common
- formats, such as copy/paste from an R session."""
+ """Prepare Reproducible Example Code via the Clipboard.
+
+ Convenience wrapper that uses the 'rmarkdown' package to render small
+ snippets of code to target formats that include both code and output.
+ The goal is to encourage the sharing of small, reproducible, and
+ runnable examples on code-oriented websites, such as
+ and , or in email.
+ 'reprex' also extracts clean, runnable R code from various common
+ formats, such as copy/paste from an R session."""
homepage = "https://github.com/jennybc/reprex"
- url = "https://cloud.r-project.org/src/contrib/reprex_0.1.1.tar.gz"
- list_url = "https://cloud.r-project.org/src/contrib/Archive/reprex"
+ cran = "reprex"
+ version('2.0.1', sha256='0e6d8667cacb63135476a766fba3a4f91e5ad86274ea66d2b1e6d773b5ca6426')
version('0.3.0', sha256='203c2ae6343f6ff887e7a5a3f5d20bae465f6e8d9745c982479f5385f4effb6c')
version('0.2.1', sha256='5d234ddfbcadc5a5194a58eb88973c51581e7e2e231f146974af8f42747b45f3')
version('0.1.1', sha256='919ae93039b2d8fb8eace98da9376c031d734d9e75c237efb24d047f35b5ba4b')
@@ -26,12 +28,24 @@ class RReprex(RPackage):
depends_on('r+X', type=('build', 'run'))
depends_on('r@3.0.2:', type=('build', 'run'))
depends_on('r@3.1:', when='@0.2.0:', type=('build', 'run'))
+ depends_on('r@3.3:', when='@1:', type=('build', 'run'))
depends_on('r-callr@2.0.0:', type=('build', 'run'))
+ depends_on('r-callr@3.3.1:', when='@1:', type=('build', 'run'))
+ depends_on('r-callr@3.6.0:', when='@2:', type=('build', 'run'))
+ depends_on('r-cli', when='@1:', type=('build', 'run'))
+ depends_on('r-cli@2.3.1:', when='@2:', type=('build', 'run'))
depends_on('r-clipr@0.4.0:', type=('build', 'run'))
+ depends_on('r-fs', when='@0.2.1:', type=('build', 'run'))
+ depends_on('r-glue', when='@1:', type=('build', 'run'))
depends_on('r-knitr', when='@:0.1.9', type=('build', 'run'))
- depends_on('r-rmarkdown', type=('build', 'run'))
- depends_on('r-whisker', type=('build', 'run'))
+ depends_on('r-knitr@1.23:', when='@1:', type=('build', 'run'))
depends_on('r-rlang', when='@0.2.0:', type=('build', 'run'))
+ depends_on('r-rlang@0.4.0:', when='@1:', type=('build', 'run'))
+ depends_on('r-rmarkdown', type=('build', 'run'))
+ depends_on('r-rstudioapi', when='@2:', type=('build', 'run'))
depends_on('r-withr', when='@0.2.0:', type=('build', 'run'))
- depends_on('r-fs', when='@0.2.1:', type=('build', 'run'))
+ depends_on('r-withr@2.3.0:', when='@1:', type=('build', 'run'))
depends_on('pandoc@1.12.3:')
+ depends_on('pandoc@2:', when='@2:')
+
+ depends_on('r-whisker', when='@:0', type=('build', 'run'))
--
cgit v1.2.3-70-g09d2