Uploads a local file (typically a tarball produced by outTar()) to a Google Drive folder via googledrive::drive_upload().

outUpload(tarball, gFolder, overwrite = TRUE, cleanup = FALSE)

Arguments

tarball

Character scalar. Path to the local file to upload.

gFolder

A Google Drive folder identifier accepted by googledrive::drive_upload() – a dribble, a Drive URL, or a bare folder ID from googledrive::as_id().

overwrite

Logical. Overwrite an existing file of the same name in the Drive folder. Default TRUE.

cleanup

Logical. Delete the local tarball after a successful upload. Default FALSE.

Value

Invisibly returns the dribble returned by googledrive::drive_upload().