Learn R Programming

reproducible (version 0.2.11)

cloudUploadFromCache: Upload a file to cloud directly from local cacheRepo

Description

Meant for internal use, as there are internal objects as arguments.

Usage

cloudUploadFromCache(
  isInCloud,
  outputHash,
  saved,
  cacheRepo,
  cloudFolderID,
  outputToSave,
  rasters
)

Arguments

isInCloud

A logical indicating whether an outputHash is in the cloud already.

outputHash

The cacheId of the object to upload

saved

The character string of the saved file's archivist digest value.

cacheRepo

A repository used for storing cached objects. This is optional if Cache is used inside a SpaDES module.

cloudFolderID

A googledrive id of a folder, e.g., using drive_mkdir(). If left as NULL, the function will create a cloud folder with a warning. The warning will have the cloudFolderID that should be used in subsequent calls. It will also be added to options("reproducible.cloudFolderID"), but this will not persist across sessions.

outputToSave

Only required if any(rasters) == TRUE. This is the Raster* object.

rasters

A logical vector of length >= 1 indicating which elements in outputToSave are Raster* objects.