...I am trying to install SMRD from
but I am getting error.
last time I was able to install but recently I updated my pc with new windows and a new version of R and R studio. After that, I am not able to run this package.
Kindly help.
...I am trying to install SMRD from
but I am getting error.
last time I was able to install but recently I updated my pc with new windows and a new version of R and R studio. After that, I am not able to run this package.
Kindly help.
Can you be more specific? Please post the complete message you get when running this commands.
if (packageVersion("devtools") < 1.6) {
install.packages("devtools")
}
devtools::install_github("Auburngrads/SMRD")
ERROR: failed to lock directory 'C:/Users/nirbh/OneDrive/Documents/R/win-library/4.0' for modifying
Try removing 'C:/Users/nirbh/OneDrive/Documents/R/win-library/4.0/00LOCK-backports'
Error: Failed to install 'SMRD' from GitHub:
(converted from warning) installation of package ‘backports’ had non-zero exit status
Downloading GitHub repo Auburngrads/SMRD@HEAD
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: backports (1.1.9 -> 1.1.10) [CRAN]
It give error, if i chose any of the option.
``Downloading GitHub repo Auburngrads/SMRD@HEAD
Installing 1 packages: backports
Installing package into ‘C:/Users/nirbh/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
backports 1.1.9 1.1.10 TRUE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/backports_1.1.9.zip'
Content type 'application/zip' length 87510 bytes (85 KB)
downloaded 85 KB
package ‘backports’ successfully unpacked and MD5 sums checked
Error: Failed to install 'SMRD' from GitHub:
(converted from warning) cannot remove prior installation of package ‘backports’``
problem resolved, need to install RBuildtool, and reinstall backports package in my case.
Thanks
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.