1
我正在使用R一段时间,并且我一直与Rstudio合作,我刚才尝试在终端中运行Rscript命令(我有一个mac ..),并且我得到了这个错误消息,Rscript:command not found
>Rscript script.R
-bash: Rscript: command not found
当我试图在终端打开R I走同样的错误 -
>R
-bash: R: command not found
我可以运行与Rstudio和制冷应用R代码里面,但我知道有一种方法可以运行R扔终端。 当我在计算机上安装R时,我错过了什么吗?我需要将R添加到我的PATH中吗?
在此先感谢!
这听起来像是R是不是在你的PATH。 –
谢谢!我会google的 –
@ T.G。这是肯定的,尝试再次安装它,一个解决方案ruby -e“$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”brew tap homebrew/science brew install r – Learner