Writes data to an Azure Blob storage container using the specified format
Usage
write_to_blob(
data,
templocalpath = "default",
savename = "my_df.parquet",
containerconnection = NULL,
blobfilepath = "trial",
format = "parquet",
overwrite = FALSE
)
Arguments
- data
A data object to write to Azure Blob storage
- templocalpath
The path to a temporary local directory to use for intermediate files (default is a new directory in the system temp directory)
- savename
The name to use for the file in Azure Blob storage
- containerconnection
The connection to the Azure Blob storage container
- blobfilepath
The path within the container to write the file (default is the root of the container)
- format
The format to use when writing the data (one of "parquet", "rds", or "csv")
- overwrite
overwrite existing file (one of "parquet", "rds", or "csv")
Examples
write_to_blob(datatable,
savename = "data.parquet",
containerconnection = mycontainer,
blobfilepath = file.path("mainfolder", "subfolder"),
overwrite=FALSE
)
#> Error in eval(expr, envir, enclos): object 'mycontainer' not found