我在AmazonEC2上设置了Rstudio。我通过PuTTY连接到该实例。安装spdep、readtxt、splm和dplyr等包。
我试过了
sudo -s
sudo yum install spdep但是,我有这个错误
Loaded plugins: priorities, update-motd, upgrade-helper
No package spdep available.同时,当我在R控制台的EC2实例上编写install.packages("spdep")代码时,我遇到了错误
ERROR: dependencies ‘classInt’, ‘units’ are not available for package ‘sf’
* removing ‘/home/henok/R/x86_64-redhat-linux-gnu-library/3.4/sf’
Warning in install.packages :
installation of package ‘sf’ had non-zero exit status
ERROR: dependencies ‘sf’, ‘deldir’, ‘expm’ are not available for package ‘spdep’
* removing ‘/home/henok/R/x86_64-redhat-linux-gnu-library/3.4/spdep’
Warning in install.packages :
installation of package ‘spdep’ had non-zero exit status
The downloaded source packages are
in‘/tmp/RtmpMBCgvy/downloaded_packages’发布于 2019-03-03 00:28:25
我切换到创建“窗口实例”而不是Linux,对于连接,我使用了“远程桌面连接器”,这在任何windows 10中都是默认的。要成功连接,请不要忘记设置“关闭防火墙”,并编辑“入站IP”以接收所有传入的IP地址(在实例设置中找到)。一旦我通过RDC连接到实例,然后简单地运行,就像我们坐在前面的Windows10一样。然后,我就可以安装,R,R studio并运行它。然后,下一步将是install.packages(),就像我们对rstudio桌面所做的那样。现在,我可以在云中使用64 in的RAM成功地运行我的东西了。
https://stackoverflow.com/questions/54747601
复制相似问题