"data.table missing in R"

User13User13 Member Posts: 155 Guru
edited May 2019 in Help


Problem:




When using the Execute R operator for the first time in RapidMiner Studio you see the following warning message in the problems tab: 


data.table package for R not found. data.table must be installed in order to execute an R script.




This is expected, the data.table package is not included in the base installation for R but it is needed for this extension.




There is a quickfix that will try to install it automatically, if you are a standard windows user it will likely fail.


This is caused by the fact that the library directory inside of R will be automatically set to read only and standard users will not have Write permission to the directory. You will see the message below in your log view if it fails.  
 



Apr 30, 2015 10:46:35 AM INFO: Warning in install.packages("data.table", repos = "http://cran.rstudio.com/") 


Apr 30, 2015 10:46:35 AM INFO:   'lib = "C:/Program Files/R/R-3.2.0/library"' is not writable


Apr 30, 2015 10:46:35 AM INFO: Error in install.packages("data.table", repos = "http://cran.rstudio.com/") : 


Apr 30, 2015 10:46:35 AM INFO:   unable to install packages


Apr 30, 2015 10:46:35 AM INFO: Execution halted







Solution: 

Install R in a file that you know you can write too, the standard Program Files location will not have the permissions that you will need.  Your individual user folder may, try this one first.  Once R is installed in this location make sure to change the path in the Preferences menu under scripting.  After changing the path restart RapidMiner Studio and attempt to use the Execute R operator again.  The quickfix option will succeed if you have proper access to the library directory.  

Tagged:
Supriya
Sign In or Register to comment.