我正在通过环境通过Anaconda使用Jupyter Notebook运行R语言,而不是R Studio。
我正在尝试安装R软件包,但它给我以下错误:
install.packages('agricolae', repos="http://cran.rstudio.com/")
also installing the dependencies ‘units’, ‘sf’, ‘spdep’
Warning message in install.packages("agricolae", repos = "http://cran.rstudio.com/"):
“installation of package ‘units’ had non-zero exit status”Warning message in install.packages("agricolae", repos = "http://cran.rstudio.com/"):
“installation of package ‘sf’ had non-zero exit status”Warning message in install.packages("agricolae", repos = "http://cran.rstudio.com/"):
“installation of package ‘spdep’ had non-zero exit status”Warning message in install.packages("agricolae", repos = "http://cran.rstudio.com/"):
“installation of package ‘agricolae’ had non-zero exit status”Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
然后我尝试加载库
library("agricolae")
库中出现错误(“ agricolae”):没有名为“ agricolae”的软件包 追溯:
如果我使用R Studio打开,则可以使用它。
有人知道如何解决Jupyter Notebook上的问题吗?我正在使用macOs sierra 10.12.6。
非常感谢您