Refer to data within a Google Storage bucket. When running on CloudML the bucket will be read from directly. Otherwise, the bucket will be automatically synchronized to a local directory.
gs_data_dir(url, local_dir = "gs", force_sync = FALSE, echo = TRUE)
Google Storage bucket URL (e.g. gs://<your-bucket>
).
Local directory to synchonize Google Storage bucket(s) to.
Force local synchonization even if the data directory already exists.
Echo command output to console.
Path to contents of data directory.
This function is suitable for use in TensorFlow APIs that accept
gs:// URLs (e.g. TensorFlow datasets). However, many package functions
accept only local filesystem paths as input (rather than
gs:// URLs). For these cases you can the gs_data_dir_local()
function,
which will always synchronize gs:// buckets to the local filesystem and
provide a local path interface to their contents.