简体   繁体   中英

Install SPDEP, SPLM and other packages on Amazon EC2 Linux Instance

I set up Rstudio on AmazonEC2. I am connected to the instance via PuTTY. To install packages like spdep, readtxt, splm, and dplyr.

I have tried

sudo -s 
sudo yum install spdep

However, I have this Error

Loaded plugins: priorities, update-motd, upgrade-helper
No package spdep available.

In mean time, when I code install.packages("spdep") on R console at the EC2 instance, I have error

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’

我切换为创建“窗口实例”而不是Linux,并为连接使用了“远程桌面连接器”,默认情况下,该连接器可在任何Windows 10中找到。要成功连接,请不要忘记将其设置为“关”防火墙”,然后编辑“入站IP”以接收所有传入IP地址(在实例设置中找到)。一旦我通过RDC连接到实例,就可以像坐在前窗10中一样简单运行。然后,我可以安装,运行R,R studio并运行它,然后下一步将像安装rstudio桌面一样执行install.packages(),现在,我可以在64GB RAM的云中成功运行我的东西了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM