DOI-USGS / DOI-USGS/streamMetabolizer
Problems installing unitted (maybe also streamMetabolizer)?
- Dominant language
- Stan
- Stars
- 47
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
I recently updated R (from 4.5.0 to 4.5.3) and now cannot get unitted to install properly - and because of this streamMetabolizer also fails to install. I'm pretty sure (but not 100% sure...) this isn't an issue with my rtools set-up (e.g., I've successfully compiled other packages from github). Currently working around this by just reverting back to the older version of R where the package is already installed. But now I've just run into the same problem again in attempting to set up another work computer to run sreamMetabolizer (which involved reinstalling R, using v.4.5.1).
Are other people having this issue? Or have I stuffed up something with my system set up?
This is the error message that I get when I try to install unitted using remotes::install_github("appling/unitted":
> > `Downloading GitHub repo appling/unitted@HEAD
> ── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────
> ✔ checking for file 'C:\Users\wellsn2\AppData\Local\Temp\RtmpyAwL5f\remotese842c7372d2\appling-unitted-d1f1172/DESCRIPTION' ...
> ─ preparing 'unitted': (340ms)
> ✔ checking DESCRIPTION meta-information ...
> ─ checking for LF line-endings in source and make files and shell scripts
> ─ checking for empty or unneeded directories
> ─ building 'unitted_0.2.9.tar.gz'
>
> * installing *source* package 'unitted' ...
> ** this is package 'unitted' version '0.2.9'
> ** using staged installation
> ** R
> ** inst
> ** byte-compile and prepare package for lazy loading
> Error: object 'rename_vars_' is not exported by 'namespace:dplyr'
> Execution halted
> ERROR: lazy loading failed for package 'unitted'
> * removing 'C:/Program Files/R/R-4.5.1/library/unitted'
> Warning message:
> In i.p(...) :
> installation of package ‘C:/Users/wellsn2/AppData/Local/Temp/RtmpyAwL5f/filee8437532821/unitted_0.2.9.tar.gz’ had non-zero exit status`
I've also tried installing by downloading the zip file, but get errors there as well, e.g.:
> `> devtools::install("C:/Users/wellsn2/OneDrive - Lincoln University/unitted-master/unitted-master")
> ── pak::local_install_deps() ─────────────────────────────────────────────────────────────────────────────────────────
>
> → Will download 1 package with unknown size.
> ℹ No downloads are needed
> ✔ 16 deps: kept 16 [2.9s]
> ── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────
> ✔ checking for file 'C:\Users\wellsn2\OneDrive - Lincoln University\unitted-master\unitted-master/DESCRIPTION' (555ms)
> ─ preparing 'unitted': (775ms)
> ✔ checking DESCRIPTION meta-information ...
> ─ checking for LF line-endings in source and make files and shell scripts
> ─ checking for empty or unneeded directories
> ─ building 'unitted_0.2.9.tar.gz'
>
> ── R CMD INSTALL ─────────────────────────────────────────────────────────────────────────────────────────────────────
> Running "C:/PROGRA~1/R/R-45~1.1/bin/x64/Rcmd.exe" INSTALL \
> "C:\Users\wellsn2\AppData\Local\Temp\RtmpyAwL5f/unitted_0.2.9.tar.gz" --install-tests
> * installing to library 'C:/Program Files/R/R-4.5.1/library'
> * installing *source* package 'unitted' ...
> ** this is package 'unitted' version '0.2.9'
> ** using staged installation
> ** R
> ** inst
> ** tests
> ** byte-compile and prepare package for lazy loading
> Error: object 'rename_vars_' is not exported by 'namespace:dplyr'
> Execution halted
> ERROR: lazy loading failed for package 'unitted'
> * removing 'C:/Program Files/R/R-4.5.1/library/unitted'
> Error in `(function (command = NULL, args = character(), error_on_status = TRUE, …`:
> ! System command 'Rcmd.exe' failed
> ---
> Exit status: 1
> stdout & stderr:
> ---
> Type .Last.error to see the more details.
>
> > .Last.error
>
> Error in `(function (command = NULL, args = character(), error_on_status = TRUE, …`:
> ! System command 'Rcmd.exe' failed
> ---
> Exit status: 1
> stdout & stderr:
> ---
> Backtrace:
> 1. devtools::install("C:/Users/wellsn2/OneDrive - Lincoln University/unitted-master/unitted-master")
> 2. pkgbuild::with_build_tools(required = FALSE, callr::rcmd("INSTALL", …
> 3. pkgbuild:::withr_with_path(rtools_path(), code)
> 4. base::force(code)
> 5. callr::rcmd("INSTALL", c(install_path, opts), echo = !quiet, …
> 6. callr:::run_r(options)
> 7. base::with(options, with_envvar(env, do.call(processx::run, c(list(bin, …
> 8. base::with.default(options, with_envvar(env, do.call(processx::run, …
> 9. base::eval(substitute(expr), data, enclos = parent.frame())
> 10. base::eval(substitute(expr), data, enclos = parent.frame())
> 11. callr:::with_envvar(env, do.call(processx::run, c(list(bin, args = real_cmdargs, …
> 12. base::force(code)
> 13. base::do.call(processx::run, c(list(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), …
> 14. (function (command = NULL, args = character(), error_on_status = TRUE, …
> 15. processx:::throw(new_process_error(res, call = sys.call(), echo = echo, …`
Contributor guide
Assessment
This issue has not been assessed yet.