Rscript - get rid of "WARNING: ignoring environment value of R_HOME" Rscript - get rid of "WARNING: ignoring environment value of R_HOME" r r

Rscript - get rid of "WARNING: ignoring environment value of R_HOME"


i assume this is very old. but, with bash, etc.:

unset R_HOME

before running Rscript should do the trick. and, with csh, etc.:

unsetenv R_HOME

should likewise work. since the R front-end script sets R_HOME (after complaining), i don't see any reason for leaving R_HOME set. (possibly i'm missing something.)


If you know which R call in the script is generating the warning, suppressWarnings() can be used to wrap the expression generating the warning. That is certainly in the "workaround" camp.