Learn R Programming

cloudfs (version 0.1.3)

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

Description

cloud_drive_ls returns a dataframe of contents of a Google Drive folder. This dataframe has name, type and id columns. name may be either full names or short names (depending on full_names parameter of cloud_drive_ls), but names(name) will always contain full names. This function:

  1. filters out folders

  2. extracts names(name) into path column.

  3. informs about the size of files that are to be downloaded/read and asks for confirmation

Usage

cloud_drive_prep_bulk(
  content,
  what = c("read", "download"),
  safe_size = 5e+07,
  quiet = FALSE
)

Value

Transformed content dataframe.

Arguments

content

(data.frame) Output of cloud_drive_ls()

what

What will be done with content, either "read" or "download". This affects only how messages will look.

safe_size

What is considered to be safe size in bytes to download in bulk. To show additional caution message in case if you accidentally run bulk reading on a folder with gigabytes of data.

quiet

All caution messages may be turned off by setting this parameter to TRUE.