Learn R Programming

cloudfs

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.

Installation

# from CRAN
install.packages("cloudfs")

# from GitHub
remotes::install_github("g6t/cloudfs")

Key Features

  1. Relative path simplicity

    Use paths relative to your project's main cloud folder.

    cloud_drive_download("raw_data/transactions.xlsx")
  2. Unified interface for Google Drive and S3

    Downloading from S3? The process is just as straightforward.

    cloud_s3_download("raw_data/transactions.xlsx")
  3. Extension-aware functions

    The package automatically selects the right read or write function based on the file extension, simplifying your interactions.

    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.

    cloud_s3_write(glmnet_model, "models/glmnet.rds", fun = readr::write_rds)
  4. Effortless cloud navigation

    Open folders in browser

    cloud_drive_browse("plots")

    or list contents in console.

    cloud_s3_ls("data")
  5. Bulk file management

    Easily retrieve all data from a folder in one go

    all_data <- 
      cloud_s3_ls("data") %>%
      cloud_s3_read_bulk()

    or push multiple files to the cloud at once.

    cloud_local_ls("plots") %>% cloud_drive_upload_bulk()

Copy Link

Version

Install

install.packages('cloudfs')

Monthly Downloads

170

Version

0.1.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Iaroslav Domin

Last Published

May 7th, 2024

Functions in cloudfs (0.1.3)

cloud_drive_download

Download a file from Google Drive to the local project folder
cloud_drive_write

Write an object to Google Drive
cloud_s3_read

Read a file from S3
cloud_s3_write

Write an object to S3
cloud_guess_write_fun

Guess writing function based on file extensions
cloud_local_ls

List Contents of local project folder
cloud_s3_write_bulk

Write multiple objects to S3 in bulk
cloud_s3_ls

List Contents of Project's S3 Folder
cloud_get_roots

Get cloud roots of a project
cloud_s3_upload

Upload a local file to S3
cloud_s3_upload_bulk

Bulk Upload Files to S3
cloud_s3_prep_bulk

Prepare S3 content dataframe to be used by bulk download/read functions
cloud_guess_read_fun

Guess reading function based on file extensions
cloud_s3_browse

Browse project's S3 folder
cloud_drive_write_bulk

Write multiple objects to Google Drive in bulk
cloud_object_ls

Prepare a dataframe for bulk writing of objects to cloud
cloud_s3_attach

Attach S3 folder to project
cloudfs-package

cloudfs: Streamlined Interface to Interact with Cloud Storage Platforms
cloud_s3_read_bulk

Bulk Read Contents from S3
cloud_drive_download_bulk

Bulk download contents from Google Drive
doc_file

Package-wide description of file parameter
doc_local

Package-wide description of local parameter
cloud_object_prep_bulk

Prepare object content dataframe to be used by bulk download/read functions
cloud_s3_download

Download a file from S3 to the local project folder
cloud_read_excel

Read excel file as a list of dataframes
cloud_s3_download_bulk

Bulk Download Contents from S3
proj_desc_get

Extract values from DESCRIPTION file
validate_desc

Validate project's DESCRIPTION file
cloud_prep_ls

Prepare ls output
check_null_cond

Return check_null Value
cloud_drive_browse

Browse project's Google Drive folder
cloud_drive_attach

Attach Google Drive folder to project
check_path

Validate a path
check_args

Capture Arguments
check_class

Check Argument's Class
check_bool

Check if Argument is Single TRUE or FALSE
check_scalar

Check if Function Argument is Scalar
cloud_drive_read_bulk

Bulk Read Contents from Google Drive
cloud_drive_upload

Upload a local file to Google Drive
check_length

Check if Argument is of Proper Length
cli_yeah

User Interface: Ask a Yes/No question
cloud_drive_prep_bulk

Prepare Google Drive content dataframe to be used by bulk download/read functions
cloud_drive_upload_bulk

Bulk Upload Files to Google Drive
cloud_drive_spreadsheet_autofit

Automatically resize all columns in a google spreadsheet
cloud_drive_read

Read a file from Google Drive
cloud_drive_ls

List Contents of Project's Google Drive Folder
cloud_drive_find_path

Find Google Drive folder based on a path