

Set the variable "bucket" for the destination storage You can access a bash terminal from the Terminal tab in the main RStudio pane.Ģ. Note: This can be workspace storage or an external Google bucket. To move generated data to permanent cloud storage, follow the directions below. How to copy RStudio data to workspace storage To protect data (Jupyter and RStudio have a shared persistent disk), it's important to limit changes to those maintaining your PD data integrity (i.e., increasing disk size and keeping the same disk type). If you delete your PD or reconfigure your Cloud Environment in some ways (decreasing your virtual machine (VM) memory or persistent disk), you can lose all or some generated data unless you explicitly save your output to workspace or external storage (i.e., Google bucket).ĭon't lose data when running both Jupyter and RStudio!Note: You have to re-create the Cloud Environments when swapping between RStudio and Jupyter in the same workspace. To safeguard data when re-creating or deleting the Persistent Disk (PD) If you want to save valuable data, or archive data, especially if you want to copy it to less expensive Nearline or C oldlinestorage, first, you need to copy it to an external bucket. This is true even if you are working in a shared workspace, since each user has their own unique workspace Cloud Environment and Persistent Disk. Note: You need to copy data to workspace storage if you want colleagues to have access. To share data with collaborators (including in a shared workspace) To use as input for a workflowįiles generated by RStudio are not automatically saved in workspace storage (Google bucket) and are not accessible outside your personal virtual RStudio Cloud Environment. Why copy RStudio-generated data to workspace or external storage?īelow are the primary reasons you may want to copy data generated in RStudio (stored in the RStudio persistent disk by default) to workspace storage (or external Google bucket). This article describes how to move data from the RStudio persistent disk storage to a Google bucket (including your workspace storage) when working in RStudio in Terra. Sometimes, though, you will want to copy data files to more permanent cloud storage: e.g., when archiving data, or to allow collaborators or workflows access.

Your RStudio Cloud Environment includes a detachable persistent disk (PD) that maintains generated data even when you re-create the virtual machine (VM).
