问题
Is there any idea, how I can find the version of my Rscript? The issue is, once I am running R in mac terminal, the version is 3.2.2 but running via Rscript the version is changed to 3.0.2. I would like to know how to update my Rscript's version!
回答1:
I cannot comment, because I have less than 50 rep, so I'm writing here.
Are you under macOS Sierra?
When I upgraded R to version 3.4.0 after upgrading my Mac to macOS 10.12 (Sierra) I had some problems with rJava. While I searched for a solution, I also noticed that the R version numbers displayed in the GUI and the terminal differed. I am not quite sure what that problem was, but part of my solution was to completely uninstall R (note the comments about using which R
!).
来源:https://stackoverflow.com/questions/44234411/updating-both-rprofile-and-r-to-the-same-version