Rscript pointing to incorrect R version in local build

让人想犯罪 __ 提交于 2019-12-31 02:34:26

问题


I recently installed a local version of R 3.1.0 on a Linux Redhat server as follows:

# from R-3.1.0 directory 
./configure --prefix=$(pwd)
make
make install

In addition, I've updated PATH and R_LIBS in my .bashrc. If I run path/to/local/R/bin/Rscript --version, then it returns the proper version number. However, if I give it a test script that prints sessionInfo it yields information from the system-wide R installation.

Is there any more I need to do to run the local version of R using Rscript? From reading a similar issue here, it looks like the code above should be all that's necessary. There's a similar SO issue here, but it's unresolved.

Edit: I just fired up Ubuntu in a VM and was able to install R locally and run Rscript without problem (using the same commands listed above). Have I gone crazy? Is there anything that might be floating around the Redhat environment on this server that might mess up the installation? Sanity checks?

来源:https://stackoverflow.com/questions/24348382/rscript-pointing-to-incorrect-r-version-in-local-build

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!