Learn R Programming

boxr (version 0.3.3)

box_save: Save and load R workspaces via box.com

Description

These convenience functions aim to provide analagous functionality to load and save.image (or save), but for .RData files stored on box.com, as opposed to locally.

Usage

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)

Arguments

...
The objects to be saved. Quoted or unquoted. Passed to save.
dir_id
The box.com folder id where the objects will be stored as a .RData file.
file_name
The name you'd like your .Rdata file saved as. For example, "myworkspace.RData"
description
Optional. character. A string to be used as the description caption for the file (added via box_add_description). Useful for describing the contents of a file, or describing the latest changes made to it. If NULL (the default), no description is added.
file_id
For box_load, the box.com id of the .RData or .rda file you'd like to load into your workspace.

Value

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.

Details

box_save saves an .RData file using save.image if objects is not supplied or 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 loads it into the current workspace.

See Also

The base R functions which these wrap; save, save.image and load.