local_to_gcs: Upload local files to Google Cloud Storage

Description Usage Arguments Value See Also Examples

View source: R/utils-upload.R

Description

Upload images or tables to Google Cloud Storage

Usage

1
local_to_gcs(x, bucket = NULL, quiet = FALSE)

Arguments

x

Character. filename.

bucket

bucket name you are uploading to

quiet

Logical. Suppress info message.

Value

Character which 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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)

csaybar/rgee documentation built on March 11, 2021, 5:48 a.m.