datadrop_ls: List files and folders within a specified DoH Data Drop...

Description Usage Arguments Value Author(s) Examples

View source: R/utilities.R

Description

List files and folders within a specified DoH Data Drop Google Drive folder

Usage

1

Arguments

id

A 33 character string for the Google Drive ID of the latest officially released DoH Data Drop. This can be obtained using the datadrop_id_latest() function or by manually expanding the shortened URL provided in bit.ly/DataDropPH and extracting the Google Drive ID.

Value

A tibble containing information on the various files and folders in the specified Google Drive for DoH Data Drop.

Author(s)

Ernest Guevarra

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
  library(googledrive)

  ## Authentication
  googledrive::drive_auth_configure(api_key = Sys.getenv("GOOGLEDRIVE_TOKEN"))

  ## Deauthorise
  googledrive::drive_deauth()

  ## Get Google Drive ID of latest DoH Data Drop
  id <- datadrop_id_latest()

  ## List the contents of the latest DoH Data Drop in Google Drive
  datadrop_ls(id = id)

## End(Not run)

como-ph/covidphdata documentation built on Dec. 31, 2020, 10:06 p.m.