Package Details: r-withr 2.5.0-1

Git Clone URL: https://aur.archlinux.org/r-withr.git (read-only, click to copy)
Package Base: r-withr
Description: Run Code 'With' Temporarily Modified Global State
Upstream URL: https://cran.r-project.org/package=withr
Licenses: MIT
Submitter: greyltc
Maintainer: greyltc (peippo)
Last Packager: peippo
Votes: 2
Popularity: 0.000050
First Submitted: 2019-02-09 13:26 (UTC)
Last Updated: 2022-03-13 17:06 (UTC)

Latest Comments

dviktor commented on 2021-12-08 18:28 (UTC)

I'm leaving maintenance and support for this package in favor of new repository. You can install pre-built packages from my repo

commented on 2021-01-20 11:02 (UTC)

2.4.0 is out, but the source code link doesnt work. Github also says that the latest version is 2.3.0, even though CRAN says it's 2.4.0. As a result, the package is broken. The archive has to be used instead for 2.3.0

Fixed PKGBUILD for 2.3.0:

# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Grey Christoforo <first name at last name dot net>

_cranname=withr
_cranver=2.3.0
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Run Code 'With' Temporarily Modified Global State"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(GPL2 GPL3)
depends=('r>=3.2.0')
optdepends=(r-covr r-dbi r-knitr r-rmarkdown r-rsqlite r-testthat)
source=("https://cran.r-project.org/src/contrib/Archive/${_cranname}/${_cranname}_${_cranver}.tar.gz")
sha256sums=('2cc03c9947d424717e94f301a0ab7d97eb2079eea5c6a0a3cdf2da32aedc67a0')

build() {
  cd "${srcdir}"

  R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
}

package() {
  cd "${srcdir}"

  install -dm0755 "${pkgdir}/usr/lib/R/library"
  cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}