cloudfs
is an R package developed by Gradient
Metrics that offers a unified interface for
simplifying cloud storage interactions. cloudfs
supports uploading,
downloading, reading, and writing files for both Google Drive and Amazon S3.
# from CRAN
install.packages("cloudfs")
# from GitHub
remotes::install_github("g6t/cloudfs")
Relative path simplicity
Use paths relative to your project's main cloud folder.
r
cloud_drive_download("raw_data/transactions.xlsx")
Unified interface for Google Drive and S3
Downloading from S3? The process is just as straightforward.
r
cloud_s3_download("raw_data/transactions.xlsx")
Extension-aware functions
The package automatically selects the right read or write function based on the file extension, simplifying your interactions.
r
cloud_s3_write(glmnet_model, "models/glmnet.rds")
If you don't like the default function, you can use a different one by explicitly calling it.
r
cloud_s3_write(glmnet_model, "models/glmnet.rds", fun = readr::write_rds)
Effortless cloud navigation
Open folders in browser
r
cloud_drive_browse("plots")
or list contents in console.
r
cloud_s3_ls("data")
Bulk file management
Easily retrieve all data from a folder in one go
r
all_data <-
cloud_s3_ls("data") %>%
cloud_s3_read_bulk()
or push multiple files to the cloud at once.
r
cloud_local_ls("plots") %>% cloud_drive_upload_bulk()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.