I have a problem installing any packages in Rstudio, here are some screenshots of code and results(mistakes)
then it's written that it's not writable
then there is a question: do you want to create your own library ? yes
and then i get this error:
cannot create dir 'C:\Users\darya\OneDrive\?????????', reason 'Invalid argument'
Error in install.packages : unable to create ‘C:/Users/darya/OneDrive/?????????/R/win-library/4.1’
How can I fix it ?
Related
I am trying to install packages for a spatial data course however each package I try install to R I get this same error message
Warning in install.packages :
'lib = "C:/Users/chris/OneDrive/Documents/R/win-library/3.4"' is not writable
I have made a folder under R in documents for 3.4.
I also get this error message;
cannot create dir 'C:\Users\chris\OneDrive\Documents\R\win-library\3.4\file2d1c49893057', reason 'No such file or directory'
Error in install.packages : unable to create temporary directory ‘C:\Users\chris\OneDrive\Documents\R\win-library\3.4\file2d1c49893057’
I don't understand whether I have to create a new directory before I install an R package or if I have a setting that prevents it from being able to install packages?
I have installed packages before/had R for 2 years and never had this issue....
I am trying to install several packages to R. The packages were send to me via email from my biostatistician and I have them on my desktop in a file called R_scripts.
I have tried:
install.packages("/Users/isimee/Desktop/R_scripts/findalpha.R", repos=NULL, type="source")
Which returns following error message:
Error in untar2(tarfile, files, list, exdir, restore_times) :
incomplete block on file
Warning message:
In install.packages("/Users/isimee/Desktop/R_scripts/findalpha.R", :
installation of package '/Users/isimee/Desktop/R_scripts/findalpha.R' had non-zero exit status
findalpha.R is one of the packages I am trying to install.
I am using terminal on a mac but have tried from R directly and it doesnt work. I have downloaded the devtools but doesnt work either apart from that I dont really know what to do with it.
Help would be very much appreciated. Thanks a lot.
I have been trying to install "ncdf4" package in R locally for more than two days now. First I tried installing "ncdf4" package with package.install() but it did not work. Afterwards, I downloaded binary file of the package and tried installing it using install_local:
> library("devtools")
> install_local("/path to the package/",quiet=FALSE)
However, this generated following error:
Installation failed: cannot open the connection
Warning message:
In read.dcf(path) :
cannot open compressed file
'/<path_to_the package>/DESCRIPTION', probable reason 'Not a directory'
I also could not install some other packages using install_local(). Can anyone help me out in troubleshooting this error?
I am not able to install packages in R console in dashDB from IBM Bluemix. I am executing the below line:
install.packages('tm')
I am getting this error:
Installing package into ‘/usr/lib64/R/library’ (as ‘lib’ is unspecified)
Warning in install.packages("tm") :
'lib = "/usr/lib64/R/library"' is not writable
Error in install.packages("tm") : unable to install packages
Execution halted
mv: cannot stat `/mnt/blumeta0/home/<userID>//<...>/<...>/output/*': No such file or directory
I have also tried giving the library parameters like this:
install.packages('tm', lib='/mnt/blumeta0/home/<userID>/R/x86_64-redhat-linux-gnu-library/3.2/lib')
I get this error:
Warning in install.packages("tm", lib = "/mnt/blumeta0/home/<userID>/R/x86_64-redhat-linux-gnu-library/3.2/lib/"):
'lib = "/mnt/blumeta0/home/<userID>/R/x86_64-redhat-linux-gnu-library/3.2/lib/"' is not writable.
Execution halted
mv: cannot stat `/mnt/blumeta0/home/dash107933//.3hwv1S2IEeq813rI935Gurz/1467874427867/output/*': No such file or directory
What could be the issue here? Do I have to do any other configuration changes before I try to install the packages? I have also tried to use .libPaths() function to set the library to above mentioned path.
The packages are getting installed properly in RStudio interface though.
Could you please help? Thanks!
PS: The keyinfo and UserIDs are removed in above statements.
I have installed packages using the 'Install Packages' menu item from the Tools Menu. Did you try that ?
See this picture for the menu location. Bluemix R Studio Web Interface
Did anyone tried to install R package: UScensus2010blk on your own PC?
I tried to use from UScensus2010:
install.blk ("windows")
It gives an error saying "Not Available Yet"
I downloaded the package myself (4.2GB!) and tried to install from local and I still get error messages:
installing source package 'UScensus2010blk' ...
** data
Warning in file.copy(files, is, TRUE) :
problem copying data\montana.blk10.rda to Q:\LCVDJ\R\R-3.0.2\library\UScensus2010blk\data\montana.blk10.rda: Invalid argument
...
(the error message repeats for different states)
...
** help
Error in lazyLoadDBinsertListElement(from, i, datafile, ascii, compress, :
write failed
ERROR: installing Rd objects failed for package 'UScensus2010blk'
* removing 'Q:/LCVDJ/R/R-3.0.2/library/UScensus2010blk'
Warning in install.packages :
running command '"Q:/LCVDJ/R/R-30~1.2/bin/i386/R" CMD INSTALL -l "Q:\LCVDJ\R\R-3.0.2\library" "C:/Users/n1304/Downloads/UScensus2010blk_1.00.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/n1304/Downloads/UScensus2010blk_1.00.tar.gz’ had non-zero exit status
Does anyone have any idea why my installation is failed? I'm using R-3.0.2
Thanks!
There's an error in the census2010 package. The functions install.tract, install.blk, install.blkgrp, install.county, and install.cdp are supposed to check for R version >= 2.11 if you call the functions with the "windows" argument, but they only check the minor version so if you have R version 3.0 through 3.10 they incorrectly report an error.
To work around this error, you should be able to run
install.packages('UScensus2010blk', repos='http://lakshmi.calit2.uci.edu/census2000/R/', type='source')
instead of
install.blk('windows')
I tried to install it, and received the same message. It appears to be a problem with all the "windows" installations, as the command install.blk("linux") is functional.