These convenience functions aim to provide analagous functionality to
base::load()
and base::save.image()
(or
base::save()
), but for .RData
files stored on box.com, as
opposed to locally.
box_save(..., dir_id = box_getwd(), file_name = ".RData", description = NULL) box_save_image(dir_id = box_getwd(), file_name = ".RData", description = NULL) box_load(file_id)
... | The objects to be saved. Quoted or unquoted. Passed to
|
---|---|
dir_id | The box.com folder id where the objects will be stored as a
|
file_name | The name you'd like your |
description | Optional. |
file_id | For |
box_load
returns a character vector of the names of objects
created, invisibly. box_save
and box_save_image
are used for
their side effects, and doen't return anything.
box_save
saves an .RData file using
base::save.image()
if objects
is not supplied or
base::save()
if it is. The file is then uploaded to box.com via
box_ul()
.
box_load
downloads a file from box.com using box_dl()
,
and then base::load()
s it into the current workspace.
The base R functions which these wrap; save()
,
save.image()
and load()
.