Saving R output in Google Colab

Recently I found the answer so I wanted to write it here in case it is useful for others.

To save an output on my google drive we need to mount it using the following.

from google.colab import drive

Then we can navigate to MyDrive using the following.

cd /content/drive/MyDrive

Now that we are in MyDrive, we can run the code and save outputs on MyDrive. Then we can download it to our laptop.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top