Provides a local filesystem interface to Google Storage buckets. Many
package functions accept only local filesystem paths as input (rather than
gs:// URLs). For these cases the gcloud_path()
function will synchronize
gs:// buckets to the local filesystem and provide a local path interface
to their contents.
gs_data_dir_local(url, local_dir = "gs", echo = FALSE)
Google Storage bucket URL (e.g. gs://<your-bucket>
).
Local directory to synchonize Google Storage bucket(s) to.
Echo command output to console.
Local path to contents of bucket.
If you pass a local path as the url
it will be returned
unmodified. This allows you to for example use a training flag for the
location of data which points to a local directory during
development and a Google Cloud bucket during cloud training.