upload_sp_item() wraps the upload_folder and upload_file method for
ms_drive objects.
Usage
upload_sp_item(
file = NULL,
dest,
...,
src = NULL,
overwrite = FALSE,
drive_name = NULL,
drive_id = NULL,
drive = NULL,
blocksize = 327680000,
recursive = FALSE,
parallel = FALSE,
call = caller_env()
)
upload_sp_items(file = NULL, dest, ..., src = NULL, call = caller_env())Arguments
- file
Path for file or directory to upload. Optional if
srcis supplied.- dest
Destination on SharePoint for file to upload. SharePoint folder URLs are supported.
- ...
Additional parameters passed to
get_sp_site()orMicrosoft365R::get_sharepoint_site().- src
Data source path passed to
upload_folderorupload_filemethod. Defaults toNULLand set to use file value by default.- overwrite
If
FALSE(default), error if an item with the name specified infileorsrcalready exists at the specified destination. IfTRUE, overwrite any existing items with the same name. The latter is the default for theupload_filemethod.- drive_name, drive_id
SharePoint drive name or ID.
- drive
A
ms_driveobject. If drive is supplied,drive_name,site_url, and any additional parameters passed to...are ignored.- blocksize, recursive, parallel
Additional parameters passed to
upload_folderorupload_filemethod forms_driveobjects.- call
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See thecallargument ofabort()for more information.