How to use R on Google Colab without extensions
Any installation is not required
There are already a few instructions on how to use R on Google Collaboratory on Medium. Still, I will show you how to use R on Google Collaboratory without installing anything.
1. Create a New notebook
On the Google colaboratory page, select Create a + New notebook.
2. Download .ipynb
From the File menu, select Download → Download .ipynb to download the notebook.
3. Edit Notebook
Edit the downloaded ipynb file using Notepad or other applications.
The following two sections are to be rewritten.
4. Upload notebook file
Select Upload notebook from the File menu and upload the notebook file you edited.
5. Check runtime
Select Change runtime type from the Runtime menu to display the currently selected runtime. If the Runtime type is set to R, confirmation is complete. R will run in this notebook.
Once you have completed setting up the R runtime, you only need to create a new notebook and select R as the runtime the next time. There is no need to repeat the above procedures 1–4.
6. R version
At the time of writing, the version of R is R4.3.1.
7. Installed libraries
The notebook already has several libraries installed, as can be seen.
8. Inconvenience compared with python
With the Python 3 runtime, the list of variables can be displayed from the left pane, but the list of variables cannot be displayed with the R runtime.