Description Usage Arguments Value Versions See Also
View source: R/boxr_upload_download.R
box_dl()
download a file from Box to a local directory
box_ul()
upload a local file to a Box folder
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
file_id |
|
local_dir |
|
overwrite |
|
file_name |
|
version_id |
|
version_no |
|
pb |
|
filename |
|
dir_id |
|
file |
|
description |
|
box_dl()
character
, local path to the downloaded file.
box_ul()
Object with S3 class boxr_file_reference
.
box_dl()
can accept one of two parameters to specify file versions:
version_id
or version_no
.
The box.com API refers to file versions using 11 digit ids (which can be
accessed via box_version_history()
) - you can specify these
using the version_id
parameter.
However, this isn't terribly intuitive. As a result, box_dl()
provides the version_no
parameter, which accepts a whole number,
and corresponds to the versions that you'll see via the web UI. For
example to download the version marked 'V2' on box.com, specify
version_no = 2
. This works by making an internal call to
box_version_history()
to retrieve the version_id
,
which makes it slightly slower.
box_fetch()
and box_push()
for
directory-wide equivalents.
box_delete_file()
for removing
uploaded files.
box_source()
for R code.
box_save()
/box_load()
for remote R objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.