avnotebooks | R Documentation |
avnotebooks()
returns the names of the notebooks
associated with the current workspace.
avnotebooks_localize()
synchronizes the content of
the workspace bucket to the local file system.
avnotebooks_delocalize()
synchronizes the content of
the notebook location of the local file system to the workspace
bucket.
avnotebooks(
local = FALSE,
namespace = avworkspace_namespace(),
name = avworkspace_name()
)
avnotebooks_localize(
destination,
namespace = avworkspace_namespace(),
name = avworkspace_name(),
dry = TRUE
)
avnotebooks_delocalize(
source,
namespace = avworkspace_namespace(),
name = avworkspace_name(),
dry = TRUE
)
local |
= |
namespace |
character(1) AnVIL workspace namespace as returned
by, e.g., |
name |
character(1) AnVIL workspace name as returned by, eg.,
|
destination |
missing or character(1) file path to the local
file system directory for synchronization. The default location
is |
dry |
|
source |
missing or character(1) file path to the local file
system directory for synchronization. The default location is
|
avnotebooks()
returns a character vector of buckets /
files located in the workspace 'Files/notebooks' bucket path,
or on the local file system.
avnotebooks_localize()
returns the exit status of
gsutil_rsync()
.
avnotebooks_delocalize()
returns the exit status of
gsutil_rsync()
.
if (gcloud_exists() && nzchar(avworkspace_name()))
avnotebooks()
if (gcloud_exists() && nzchar(avworkspace_name()))
avnotebooks_localize() # dry run
if (gcloud_exists() && nzchar(avworkspace_name()))
try(avnotebooks_delocalize()) # dry run, fails if no local resource
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.