Apr 13, 2020
2 mins read
I wrote MEMO that the preparation for running rEDM using EC2.
The following text is the clone of the above MEMO.
This entry describes the preparation for running rEDM using EC2.
ssh -i "hogehoge.pem" ubuntu@hugahuga.compute.amazonaws.com
scp -i ./hogehoge.pem -r [directories] ubuntu@hugahuga.compute.amazonaws.com:~/mydir/
lsb_release -cs
echo -e "\n## For R package" | sudo tee -a /etc/apt/sources.list
echo "deb https://cran.ism.ac.jp//bin/linux/ubuntu $(lsb_release -cs)-cran35/" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt update
sudo apt-get install r-base
Ref
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libxml2-dev
sudo apt-get install libssl-dev
install.packages(remotes)
remotes::install_github("ha0ye/rEDM")
library(rEDM)
rEDM latest version(190422) DOESN’T have twin surrogate method by default… So if you would like to use this method, 1. install rEDM ver.0.7.1, or 2. read data_transformations.R
Refs
install rEDM ver.0.7.1
install.packages("repmis")
library(repmis)
InstallOldPackages(pkgs = "rEDM", versions = "0.7.1")
create data_transformations.R by copy & paste above page
and then read this file
source(data_transformations.R)
Refs
Sharing is caring!