Learn R Programming

googleCloudStorageR (version 0.7.0)

gcs_download_url: Get the download URL

Description

Create the download URL for objects in buckets

Usage

gcs_download_url(object_name, bucket = gcs_get_global_bucket(), public = FALSE)

Arguments

object_name

A vector of object names

bucket

A vector of bucket names

public

TRUE to return a public URL

Value

the URL for downloading objects

Details

bucket names should be length 1 or same length as object_name

Download URLs can be either authenticated behind a login that you may need to update access for via gcs_update_object_acl, or public to all if their predefinedAcl = 'publicRead'

Use the public = TRUE to return the URL accessible to all, which changes the domain name from storage.cloud.google.com to storage.googleapis.com

See Also

Other download functions: gcs_parse_download(), gcs_signed_url()