- Joined
- Aug 9, 2023
- Messages
- 446
Before proceeding into installing the web server, we'll install one more package (or a collection of packages to be precise) in R, Tidyverse. Tidyverse has some dependencies (e.g. rvest) which require the libxml12-dev package, let's install it using:
After this we'll open the R console with root privileges using...
...and we should be able to install Tidyverse using:
Once again R will prompt us to select a mirror. I'll use "34: Marseille, France [https]" as usual, but feel free to use whichever you like. After the installation is complete, check that the library loads without errors by running:
The output should look like this:
![001.png 001.png](https://www.hobby-machinist.com/data/attachments/428/428932-6b57ed2cab37b7ae1a3175f7c5767728.jpg)
Now all there is left to is to exit the R console by running:
There is no need to save the workspace this time either![Geek :geek: :geek:](/styles/default/xenforo/smilies/geek.png)
Bash:
$ sudo apt install libxml2-dev
After this we'll open the R console with root privileges using...
Bash:
$ sudo -i R
...and we should be able to install Tidyverse using:
Code:
install.packages("tidyverse")
Once again R will prompt us to select a mirror. I'll use "34: Marseille, France [https]" as usual, but feel free to use whichever you like. After the installation is complete, check that the library loads without errors by running:
Code:
library(tidyverse)
The output should look like this:
![001.png 001.png](https://www.hobby-machinist.com/data/attachments/428/428932-6b57ed2cab37b7ae1a3175f7c5767728.jpg)
Now all there is left to is to exit the R console by running:
Code:
q()
There is no need to save the workspace this time either
![Geek :geek: :geek:](/styles/default/xenforo/smilies/geek.png)
Last edited: