Closed ries9112 closed 3 years ago
Just tested it and I could not replicate what you have got. Anything else you ran before getting this error?
I ran
id <- plumberDeploy::do_provision()
analogsea::install_r_package(package = 'dplyr', droplet = id)
> sessioninfo::session_info()
- Session info ----------------------------------------------------------------------------
setting value
version R version 4.1.0 (2021-05-18)
os Windows 10 x64
system x86_64, mingw32
ui RStudio
language (EN)
collate English_United States.1252
ctype English_United States.1252
tz America/New_York
date 2021-07-24
- Packages --------------------------------------------------------------------------------
package * version date lib source
analogsea 1.0.0 2021-06-01 [1] CRAN (R 4.1.0)
askpass 1.1 2019-01-13 [1] CRAN (R 4.0.5)
cli 3.0.1 2021-07-17 [1] CRAN (R 4.1.0)
credentials 1.3.0 2020-07-21 [1] CRAN (R 4.1.0)
curl 4.3.1 2021-04-30 [1] CRAN (R 4.0.5)
httr 1.4.2 2020-07-20 [1] CRAN (R 4.0.5)
jsonlite 1.7.2 2020-12-09 [1] CRAN (R 4.0.5)
magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.0.5)
openssl 1.4.4 2021-04-30 [1] CRAN (R 4.0.5)
plumberDeploy * 0.2.1.10000 2021-07-24 [1] local
R6 2.5.0 2020-10-28 [1] CRAN (R 4.0.5)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.1.0)
ssh 0.8.0 2021-05-03 [1] CRAN (R 4.1.0)
sys 3.4 2020-07-23 [1] CRAN (R 4.0.5)
withr 2.4.2 2021-04-18 [1] CRAN (R 4.0.5)
yaml 2.2.1 2020-02-01 [1] CRAN (R 4.0.5)
[1] C:/Program Files/R/R-4.1.0/library
I would also like to delete the LOCK file for the dependency that's failing (
fansi
), but when I ssh into the DigitalOcean droplet I'm not able to locate the directory with the R library of packages. These are the folders I see (most of them are hidden files/folders):
sudo rm /usr/local/lib/R/site-library/00LOCK-*
You cd (current directory) into your profile home folder while the lock files are in /usr/local/lib/R/site-library.
You are running your commands here : /home/root
To get to the base of your directories tree do cd /
If you do an ls -al
from there you will see all folders.
Good luck
Yesss, that worked, THANK YOU!
I doubt it will be helpful to anyone else, but in my case I had to add -rf dir
to delete the directory, so:
sudo rm /usr/local/lib/R/site-library/00LOCK-* -rf dir
This is great, thank you for the thoughtful explanation (sorry, should have realized the cd /
command myself), and for the really awesome code snippet. dplyr
successfully installed without any issues now! As to what I did, I think just some other standard package installs, perhaps a problem when I tried installing the tidyverse
with the same command, but not 100% sure.
One more follow-up. I think my issues originated from not having xml2 installed and that being a dependency for the tidyverse.
I fixed the issue by going back into my droplet and running the command:
apt install libxml2-dev
After installing this dependency I was able to successfully install the tidyverse
package as well.
Thanks again!
System details
Output of
sessioninfo::session_info()()
:Example application or steps to reproduce the problem
Describe the problem in detail
I am running into issues installing packages with the
install_r_package()
function and I'm unable to install a lot of packages, this is the output I get when I try installingdplyr
for example:I would also like to delete the LOCK file for the dependency that's failing (
fansi
), but when I ssh into the DigitalOcean droplet I'm not able to locate the directory with the R library of packages. These are the folders I see (most of them are hidden files/folders):The one called
.local
seemed promising but doesn't seem to have the folder I'm looking for:When I try
install_github_r_package()
I get the same result where it wants me to delete00LOCK-fansi
:Any thoughts/suggestions?