Rscript issue - using different version of R?

后端 未结 1 887
借酒劲吻你
借酒劲吻你 2021-01-25 10:49

I\'m trying to load a library in an Rscript, but it\'s giving me a strange error. I\'m running the 2.12.1 version of the Rscript binary, yet it complains that my package was bui

相关标签:
1条回答
  • 2021-01-25 11:05

    I figured it out with help from comments by @aL3xa and @Iterator. When I run whereis Rscript, I get:

    Rscript: /usr/bin/Rscript /usr/bin/X11/Rscript

    None of those represents the R installation I want to use (version 3.2.2 in this case), which would be located at

    /myinstall/R-3.2.2/bin/

    But if I run the Rscript command with the whole path, I force it to use the desired installation:

    /myinstall/R-3.2.2/bin/Rscript tmp.R

    which runs like a breeze.

    0 讨论(0)
提交回复
热议问题