1
我最近在我的Mac上安裝了R(3.3.1)的最新版本,但不知何故R仍然指向我有的舊R版本。當在命令行中調用R時,會顯示新版本,但是在R environmnet中鍵入版本時會顯示舊版本(3.0.2)。兩個不同的R版本和調用舊的R版本
應該做什麼修改以便更新到更新的R版本? 另外我從Frameworks中刪除以前版本的目錄。
另外可能是因爲這個問題,當我啓動R studio時出現錯誤。
ls /Library/Frameworks/R.framework/Versions/
3.3 Current
===========================
[email protected]:~$ R
Error in objects(db.pos, all.names = TRUE) :
2 arguments passed to .Internal(ls) which requires 3
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)
....
....
Error in gzfile(file) : invalid 'encoding' argument
During startup - Warning message:
unable to restore saved data in .RData
> version
_
platform x86_64-apple-darwin10.8.0
arch x86_64
os darwin10.8.0
system x86_64, darwin10.8.0
status
major 3
minor 0.2
year 2013
month 09
day 25
svn rev 63987
language R
version.string R version 3.0.2 (2013-09-25)
nickname Frisbee Sailing