1.当我试图安装UsingR包使用它结束了显示几个警告:
The downloaded source packages are in
‘/tmp/RtmpWornZQ/downloaded_packages’
Warning messages:
1: In install.packages("UsingR") :
installation of package ‘RColorBrewer’ had non-zero exit status
2: In install.packages("UsingR") :
installation of package ‘Formula’ had non-zero exit status
3: In install.packages("UsingR") :
installation of package ‘SparseM’ had non-zero exit status
4: In install.packages("UsingR") :
installation of package ‘HistData’ had non-zero exit status
5: In install.packages("UsingR") :
installation of package ‘aplpack’ had non-zero exit status
6: In install.packages("UsingR") :
installation of package ‘latticeExtra’ had non-zero exit status
7: In install.packages("UsingR") :
installation of package ‘quantreg’ had non-zero exit status
8: In install.packages("UsingR") :
installation of package ‘Hmisc’ had non-zero exit status
9: In install.packages("UsingR") :
installation of package ‘UsingR’ had non-zero exit status
2.从项目网站上我可以看到MACos或Windows的包,但看不到Ubuntu的包,
http://cran.r-project.org/web/packages/UsingR/index.html
那么有没有可能安装在ubuntur上呢?或者我需要在某个地方做些调整?
2条答案
按热度按时间vyswwuz21#
请尝试:
sudo apt-get install r-base-dev
xnifntxz2#
尝试在您的终端中运行此命令:
然后在您的R环境中运行以下命令: