Create a new subdirectory in the staging directory to store files for an upload to the Gobbler registry.
If the to-be-uploaded files are saved here, users can avoid an extra copying step in uploadDirectory
.
allocateUploadDirectory(staging, create = TRUE)
String containing a path to a newly created subdirectory within staging
.
This (or its subdirectories) are typically used as the directory
argument in uploadDirectory
.
If create=FALSE
, a name will be chosen but the subdirectory itself will not yet be created.
staging <- tempfile()
dir.create(staging)
allocateUploadDirectory(staging)
#> [1] "/tmp/RtmpkHQBOy/file1d15284c53/upload-root-1d168977ac"