16 August 2021 2 8K Report

Hi everyone!

I am trying to install the package "compareGroups" in R and I am struggling with the error as following:

> install.package ("compareGroups")

..................................................................................................................................

Error in install.packages : ERROR: failed to lock directory ‘C:\Users\QUANG ANH DO\Documents\R\win-library\4.0’ for modifying

Try removing ‘C:\Users\QUANG ANH DO\Documents\R\win-library\4.0/00LOCK’

# the same error while trying installing from Github

> library(devtools) devtools::install_github(repo = "isubirana/compareGroups")

.............................................................

Error: Failed to install 'compareGroups' from GitHub:

ERROR: failed to lock directory ‘C:\Users\QUANG ANH DO\Documents\R\win-library\4.0’ for modifying

Try removing ‘C:\Users\QUANG ANH DO\Documents\R\win-library\4.0/00LOCK’

Could anyone kindly explain and show the the way to install the package?

Thank you in advance!

More Anh Quang Do's questions See All
Similar questions and discussions