Run R Script - Ubuntu Server -
i've compiled r on ubuntu server 16.04. i'm attempting run r script using rscript function, i'm running errors.
when run script using rscript, output shows functions as() , new() methods package included in r distribution cannot found. when run r interactively, i'm able use these functions without problem.
any tremendously appreciated!
it design bug in rscript: not load methods on startup.
two fixes:
- add
library(methods)script, or - do
sudo apt-get install r-cran-littler, userinstead ofrscript.
r has been loading methods since day 1 behaviour of rscript never made sense.
Comments
Post a Comment