write_rds_datalake: Write an RDS file to the lake. .RDS so the attributes can be...

View source: R/datalake.R

write_rds_datalakeR Documentation

Write an RDS file to the lake. .RDS so the attributes can be saved as metadata. Basic attributes are applied below But you can add your own using attr(). V The function first writes the file to a temp directory therefore, it avoids the unintended consequences of saving the file in the disk.

Description

Write an RDS file to the lake. .RDS so the attributes can be saved as metadata. Basic attributes are applied below But you can add your own using attr(). V The function first writes the file to a temp directory therefore, it avoids the unintended consequences of saving the file in the disk.

Usage

write_rds_datalake(data, s3_path)

Arguments

data

an object to write to the lake

s3_path

the object path in the lake to save to (this should have the extension .RDS)

Examples

## Not run: 
setup_datalake_access()
read_from_datalake("landcover", "concordance", "lcdb4")

## End(Not run)

StatisticsNZ/er.helpers documentation built on Oct. 2, 2023, 7:24 a.m.