I have an R notebook in colab where I want to read a file which is saved in my google drive.
I only seem to find python code such as \"from google.colab import driv
Start using python:
from google.colab import drive drive.mount('/content/drive')
Then load the R Magic:
%load_ext rpy2.ipython
and then activate the R Magic and load your data:
%%R url = ('/content/drive/myDrive/folder1/myfile.csv') dataset = read.csv(url)