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’