r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
330 stars 152 forks source link

issue rolling back package wdman to previous version using install_version #746

Closed sophk1 closed 10 months ago

sophk1 commented 1 year ago

I have been attempting to roll back the R package wdman to a previous version in order to hopefully solve a dependency issue with RSelenium. However, I am getting an error with this code: remotes::install_version("wdman",version="0.2.5",repos="http://cran.us.r-project.org") I get the following output: Downloading package from url: http://cran.us.r-project.org/src/contrib/Archive/wdman/wdman_0.2.5.tar.gz Installing package into ‘C:/Users/abc/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) Warning message: In i.p(...) : installation of package ‘C:/Users/abc/AppData/Local/Temp/RtmpuCeY3j/remotes1aec32a03b15/wdman’ had non-zero exit status Does anyone know of a fix for this? Session Details: Windows 10, R 4.2.2, remotes v2.4.2

gaborcsardi commented 1 year ago

There is probably something wrong on your machine, e.g. a dependency has a broken install. Try if all dependencies are ok, and if yes, then please show us the complete output. E.g. this is what I get:

❯ remotes::install_version("wdman",version="0.2.5",repos="http://cran.us.r-project.org")
Downloading package from url: http://cran.us.r-project.org/src/contrib/Archive/wdman/wdman_0.2.5.tar.gz
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All
2: CRAN packages only
3: None
4: ps   (194a225a9... -> d7bc4c57c...) [GitHub]
5: yaml (2.3.6        -> 2.3.7       ) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 3
Installing package into ‘/Users/gaborcsardi/Library/R/arm64/4.2/library’
(as ‘lib’ is unspecified)
* installing *source* package ‘wdman’ ...
** package ‘wdman’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (wdman)
sophk1 commented 1 year ago

I reinstalled all package dependencies of wdman and when I rerun I get the same output (this is the complete output):

> remotes::install_version("wdman",version="0.2.5",repos="http://cran.us.r-project.org")

Downloading package from url: http://cran.us.r-project.org/src/contrib/Archive/wdman/wdman_0.2.5.tar.gz
Installing package into ‘C:/Users/sck11/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/sck11/AppData/Local/Temp/RtmpcdxGRe/remotes458832aa4e6c/wdman’ had non-zero exit status
gaborcsardi commented 1 year ago

I am fairly sure that this is not a remotes issue. Try to download that package and install it manually.

gaborcsardi commented 10 months ago

Please reopen this issue if you still have problems with this. Thanks!