local_to_gcs: Upload local files to Google Cloud Storage

View source: R/utils-upload.R

local_to_gcsR Documentation

Upload local files to Google Cloud Storage

Description

Upload images or tables to Google Cloud Storage

Usage

local_to_gcs(x, bucket = NULL, predefinedAcl = "bucketLevel", quiet = FALSE)

Arguments

x

Character. filename.

bucket

bucket name you are uploading to

predefinedAcl

Specify user access to object. Passed to googleCloudStorageR::gcs_upload.

quiet

Logical. Suppress info message.

Value

Character that represents the full path of the object in the GCS bucket specified.

See Also

Other generic upload functions: ee_utils_create_manifest_image(), ee_utils_create_manifest_table()

Examples

## Not run: 
library(rgee)
library(stars)

# Initialize a specific Earth Engine account and
# Google Cloud Storage credentials
ee_Initialize(gcs = TRUE)

# # Define an image.
tif <- system.file("tif/L7_ETMs.tif", package = "stars")
local_to_gcs(x = tif, bucket = 'rgee_dev')

## End(Not run)

r-spatial/rgee documentation built on July 4, 2024, 9:33 a.m.