Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gcs_save_image

Save an R session to the Google Cloud


Description

Performs save.image then saves it to Google Cloud Storage.

Usage

gcs_save_image(
  file = ".RData",
  bucket = gcs_get_global_bucket(),
  saveLocation = NULL,
  envir = parent.frame()
)

Arguments

file

Where to save the file in GCS and locally

bucket

Bucket to store objects in

saveLocation

Which folder in the bucket to save file

envir

Environment to save from

Details

gcs_save_image(bucket = "your_bucket") will save all objects in the workspace to .RData folder on Google Cloud Storage within your_bucket.

Restore the objects using gcs_load(bucket = "your_bucket")

This will overwrite any data with the same name in your current local environment.

Value

The GCS object

See Also

Other R session data functions: gcs_load(), gcs_save_all(), gcs_save(), gcs_source()


googleCloudStorageR

Interface with Google Cloud Storage API

v0.6.0
MIT + file LICENSE
Authors
Mark Edmondson [aut, cre] (<https://orcid.org/0000-0002-8434-3881>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.