Learn R Programming

googleCloudStorageR (version 0.7.0)

gcs_compose_objects: Compose up to 32 objects into one

Description

This merges objects stored on Cloud Storage into one object.

Usage

gcs_compose_objects(objects, destination, bucket = gcs_get_global_bucket())

Arguments

objects

A character vector of object names to combine

destination

Name of the new object.

bucket

The bucket where the objects sit

Value

Object metadata

See Also

Compose objects

Other object functions: gcs_copy_object(), gcs_delete_object(), gcs_get_object(), gcs_list_objects(), gcs_metadata_object()

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
 gcs_global_bucket("your-bucket")
 objs <- gcs_list_objects()
 
 compose_me <- objs$name[1:30]
 
 gcs_compose_objects(compose_me, "composed/test.json")

# }

Run the code above in your browser using DataLab