-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b86b06e
commit da6226f
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
layout: post | ||
title: "R in WSL" | ||
image: assets/images/wsl2.png | ||
--- | ||
|
||
`````` | ||
# Update and upgrade package lists | ||
sudo apt update | ||
sudo apt upgrade | ||
# Install additional dependencies | ||
sudo apt install libicu66 | ||
sudo apt install build-essential libcurl4-openssl-dev libssl-dev libxml2-dev | ||
# Add CRAN repository to package sources | ||
sudo tee /etc/apt/sources.list.d/cran.list <<EOF | ||
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ | ||
EOF | ||
# Import the CRAN repository key | ||
gpg --keyserver keyserver.ubuntu.com --recv-key 'E298A3A825C0D65DFD57CBB651716619E084DAB9' | ||
gpg --export --armor 'E298A3A825C0D65DFD57CBB651716619E084DAB9' | sudo apt-key add - | ||
# Install additional development libraries | ||
sudo apt install build-essential libcurl4-openssl-dev libssl-dev libxml2-dev libicu-dev | ||
# Download and install libicu66 package | ||
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2_amd64.deb | ||
sudo dpkg -i libicu66_66.1-2ubuntu2_amd64.deb | ||
# Install R | ||
sudo apt install r-base | ||
`````` |