How to Install R on Ubuntu
How to Install and Use R on Ubuntu
- Installing R on Ubuntu
1sudo apt install r-base
- Interactive Mode in R:
1R
now you can test some code:
1> 25+25
2[1] 50
3
4> print ("Hello World!")
5[1] "Hello World!"
You can quit using q() or pressing CTRL+c.
- Use R by using RStudio - Download rstudio
Jupyter Notebook
- Install R in Jupyter Notebook:
1conda install -c r r-irkernel
- launch Jupyter Notebook
1jupyter notebook
- Create a new Notebook and select ‘R‘ from the drop-down list.