I have Rv4.2.2, Rstudio 2022.07.2-576, Rtools 4.3, and windows 10. I am attempting to install an old version of a package (specifically wdman) in order to hopefully solve an issue with RSelenium. However, I am getting an error that installation of the package had a non-zero exit status. I have tried with multiple different packages, so the issue seems to be with the methods of installation rather than in the package itself.
I have tried several different methods of installing packages, including all of those shown here. These methods include using
# 1 -----
devtools::install_version("wdman", version = "0.2.5", repos = "http://cran.us.r-project.org")
# 2 -----
remotes::install_version("wdman", version = "0.2.5", repos = "http://cran.us.r-project.org")
# 3 -----
url <- "https://cran.r-project.org/src/contrib/Archive/wdman/wdman_0.2.5.tar.gz"
pkgFile <- "wdman_0.2.5.tar.gz"
install.packages(pkgs=pkgFile, type="source", repos=NULL)
I have also tried installing through the install button in the packages window in RStudio. I specifically get an output saying:
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/RtmpmWqVmX/remotese545bc06de0/wdman’ had non-zero exit status
I am not sure what else to try, as every method of installing the old package versions either gives me this error or just says that the installation had a non-zero exit status. In addition to different installation methods I have also tried adjusting firewall settings to make sure that this is not blocking the installation, but no success there either. Any help would be greatly appreciated.