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.