Package Details: r-reprex 2.1.1-1

Git Clone URL: https://aur.archlinux.org/r-reprex.git (read-only, click to copy)
Package Base: r-reprex
Description: Prepare Reproducible Example Code via the Clipboard
Upstream URL: https://cran.r-project.org/package=reprex
Licenses: MIT
Submitter: panupam
Maintainer: pekkarr (BioArchLinuxBot)
Last Packager: BioArchLinuxBot
Votes: 1
Popularity: 0.010905
First Submitted: 2021-05-25 22:18 (UTC)
Last Updated: 2024-07-08 18:07 (UTC)

Dependencies (23)

Required by (1)

Sources (1)

Latest Comments

timostolz commented on 2025-03-01 16:19 (UTC)

I can confirm the build problems of @slot.

The broken test should most probably be fixed upstream, but for the while, you can create a patch named update-test-snapshot.patch with the following content:

--- a/tests/testthat/_snaps/input.md
+++ b/tests/testthat/_snaps/input.md
@@ -11,8 +11,10 @@
       #' output: reprex::reprex_document
       #' ---

-      x <- 1:5
-      mean(x)
+      {
+          x <- 1:5
+          mean(x)
+      }

 # reprex: character input works

Afterwards, you can patch the PKGBUILD file with

diff --git a/PKGBUILD b/PKGBUILD
index ebad11e..0fdb4ca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,6 +28,7 @@ depends=(
 )
 checkdepends=(
   r-styler
+  r-stringi
   r-testthat
 )
 optdepends=(
@@ -41,9 +42,23 @@ optdepends=(
   r-styler
   r-testthat
 )
-source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
-md5sums=('cddc2f1334ad703df88a18926432470f')
-b2sums=('62cf9caf503472824e6f29dceb389248a644034654333c2e21cdd982eca868bf1d4f9cb7d8a52a85d3b79200d6a851f9389860843a7d69ebe2b23af229bed39a')
+source=(
+  "https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
+  "update-test-snapshot.patch"
+)
+md5sums=(
+  'cddc2f1334ad703df88a18926432470f'
+  'SKIP'
+)
+b2sums=(
+  '62cf9caf503472824e6f29dceb389248a644034654333c2e21cdd982eca868bf1d4f9cb7d8a52a85d3b79200d6a851f9389860843a7d69ebe2b23af229bed39a'
+  'SKIP'
+)
+
+prepare() {
+  cd "$_pkgname"
+  #patch -p1 -i "$srcdir/update-test-snapshot.patch"
+}

 build() {
   mkdir build

slot commented on 2024-10-16 14:21 (UTC) (edited on 2024-10-16 14:25 (UTC) by slot)

Cannot compile:

══ Failed tests ═ 
═════════════════════════════════════════════════════════════════════════════════
── Failure (test-input.R:10:3): reprex: expression input works ─────────────────
Snapshot of code has changed:
old[8:12] vs new[8:14]
    #' output: reprex::reprex_document
    #' --- 
-   x <- 1:5
-   mean(x)
+   {
+       x <- 1:5
+       mean(x)
+   }

* Run `testthat::snapshot_accept('input')` to accept the change.
* Run `testthat::snapshot_review('input')` to interactively review the change.

[ FAIL 1 | WARN 0 | SKIP 3 | PASS 180 ]
Error: Test failures
Execution halted

.

gnaggnoyil commented on 2023-02-06 16:14 (UTC)

Upstream pandoc package has been split into two packages haskell-pandoc and pandoc-cli, where haskell-pandoc follows the original pandoc version while pandoc-cli has its own version. pandoc-cli provides pandoc executable and are marked to replace the old pandoc package. Please update the PKGBUILD.