Closed mickmcq closed 2 years ago
I was able to solve this issue by saying
install.packages("xml2", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
following advice on stackoverflow
@mickmcq install.packages("xml2", dependencies=TRUE, INSTALL_opts = c('--no-lock')) This code works for me to install xml2 on WSL (Ubuntu 22.04), thanks a lot !
I have started with a clean install of both Ubuntu 20.04 and Ubuntu 22.04 on WSL2 and have run the following:
When I try to install xml2 in R, here is what I get:
I have also tried using sudo, which installs in
/usr/lib/R/library
and gives exactly the same error (can not move it to the appropriate destination due to file permissions) and I've also tried specifying the library asusr/lib/R/library
which gives the same error again. As I mentioned, I've tried this on both 20.04 and the brand new 22.04. I am really at my wit's end! I have been able to install 117 other R packages as follows:but a lot of things depend on xml2. For example, I can't install devtools without it.