Ubuntu中的R包“UsingR”

v440hwme  于 2022-12-30  发布在  其他
关注(0)|答案(2)|浏览(251)

1.当我试图安装UsingR包使用它结束了显示几个警告:

  1. The downloaded source packages are in
  2. ‘/tmp/RtmpWornZQ/downloaded_packages
  3. Warning messages:
  4. 1: In install.packages("UsingR") :
  5. installation of package RColorBrewer had non-zero exit status
  6. 2: In install.packages("UsingR") :
  7. installation of package Formula had non-zero exit status
  8. 3: In install.packages("UsingR") :
  9. installation of package SparseM had non-zero exit status
  10. 4: In install.packages("UsingR") :
  11. installation of package HistData had non-zero exit status
  12. 5: In install.packages("UsingR") :
  13. installation of package aplpack had non-zero exit status
  14. 6: In install.packages("UsingR") :
  15. installation of package latticeExtra had non-zero exit status
  16. 7: In install.packages("UsingR") :
  17. installation of package quantreg had non-zero exit status
  18. 8: In install.packages("UsingR") :
  19. installation of package Hmisc had non-zero exit status
  20. 9: In install.packages("UsingR") :
  21. installation of package UsingR had non-zero exit status

2.从项目网站上我可以看到MACos或Windows的包,但看不到Ubuntu的包,
http://cran.r-project.org/web/packages/UsingR/index.html
那么有没有可能安装在ubuntur上呢?或者我需要在某个地方做些调整?

vyswwuz2

vyswwuz21#

请尝试:sudo apt-get install r-base-dev

xnifntxz

xnifntxz2#

尝试在您的终端中运行此命令:

  1. sudo apt-get install r-base-dev

然后在您的R环境中运行以下命令:

  1. install.packages("Hmisc")
  2. install.packages("UsingR", dependencies=TRUE)

相关问题