Stores the file at path under the given backend. With id = NULL a new record is created and the backend mints its storage handle; otherwise a new version is added to the existing record identified by id. This is a low-level generic; most callers should use rack_save() instead.

rack_upload(backend, path, ...)

Arguments

backend

A rack backend object (e.g. a pins_board).

path

Character scalar. Path to the local file to upload.

...

Additional arguments passed to the method, including name (the board name, used to mint a handle when creating) and id (an existing rack_id to add a version to, or NULL to create a record).

Value

A rack_id object identifying the newly created version.

See also

rack_save() for the high-level wrapper that serialises R data before uploading, rack_download() for the complementary download generic.