Installing staplr package in R (WSL2)

in bash:

sudo apt-get install libxml2-dev libcurl4-openssl-dev libssl-dev libpoppler-cpp-dev
sudo apt install default-jdk default-jre

java --version
sudo vi /etc/environment

JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/bin/java"
# /etc/environment 맨 끝줄에 paste

source /etc/environment
echo $JAVA_HOME

sudo -i R

in R:

install.packages('XML')
install.packages('curl')
install.packages('pdftools')
install.packages('staplr', dependencies = TRUE

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다