Learn R Programming

rgee (version 0.5.0)

local_to_gcs: Upload local files to Google Cloud Storage

Description

Upload images or tables to Google Cloud Storage

Usage

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 name of the object in the GCS bucket specified.

Examples

Run this code
# NOT RUN {
library(rgee)
library(stars)
ee_reattach()

# Initialize a specific Earth Engine account and
# Google Cloud Storage credentials
ee_Initialize(
  email = "data.colec.fbf@gmail.com",
  gcs = TRUE
)

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

Run the code above in your browser using DataLab