parallelly fails to load on the development version of R. This appears to be due to an undefined variable in parallelly_disable_parallel_setup_if_needed() that has the same name as a base R function (rev).
Steps to reproduce:
Install R-devel (4.2.0)
Attempt to install parallelly with install.packages()
See error:
Retrieving 'https://cloud.r-project.org/src/contrib/parallelly_1.26.1.tar.gz' ...
OK [file is up to date]
Installing parallelly [1.26.1] ...
FAILED
Error installing package 'parallelly':
======================================
* installing to library ‘/Users/richard/OneDrive - Cardiff University/Research/alphabetArithmetic/renv/staging/1’
* installing *source* package ‘parallelly’ ...
** package ‘parallelly’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘parallelly’:
.onLoad failed in loadNamespace() for 'parallelly', details:
call: is.finite(rev)
error: default method not implemented for type 'closure'
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/richard/OneDrive - Cardiff University/Research/alphabetArithmetic/renv/staging/1/parallelly’
Error: install of package 'parallelly' failed [error code 1]
} else if (rver == "4.2.0") {
if (R.version[["status"]] != "Under development (unstable)") return()
if (length(rev) == 1L && is.finite(rev) && rev >= 80472) {
return()
}
In contrast to the if (rver == "4.1.0") { block above it, rev is not defined first, meaning rev is just the base R function. This causes the error "error: default method not implemented for type 'closure'" (At least, that's my bet).
parallelly
fails to load on the development version of R. This appears to be due to an undefined variable inparallelly_disable_parallel_setup_if_needed()
that has the same name as a base R function (rev
).Steps to reproduce:
parallelly
withinstall.packages()
My guess is that the error is here (https://github.com/HenrikBengtsson/parallelly/blob/30c8893ae27158a9f7cf99f56a0dac2fa6d1d012/R/parallelly_disable_parallel_setup_if_needed.R#L32):
In contrast to the
if (rver == "4.1.0") {
block above it,rev
is not defined first, meaningrev
is just the base R function. This causes the error "error: default method not implemented for type 'closure'" (At least, that's my bet).My sessionInfo():