Manage Google Drive files from R.
googledrive allows you to interact with files on Google Drive from R.
Install the CRAN version:
install.packages("googledrive")
Or install the development version from GitHub:
devtools::install_github("tidyverse/googledrive")
Please see the package website: https://tidyverse.github.io/googledrive/
Here's a teaser that uses googledrive to view some of the files you see on https://drive.google.com:
library("googledrive")drive_find(n_max = 25)#> Auto-refreshing stale OAuth token.#> # A tibble: 25 x 3#> name#> * <chr>#> 1 chicken-rm.txt#> 2 chicken.jpg#> 3 README-mirrors.csv#> 4 README-mirrors.csv#> 5 def#> 6 abc#> 7 folder1-level4#> 8 folder1-level3#> 9 cranberry-TEST-drive-ls#> 10 folder1-level2-TEST-drive-ls#> # ... with 15 more rows, and 2 more variables: id <chr>,#> # drive_resource <list>
If you'd like to contribute to the development of googledrive, please read these guidelines.
glue::collapse()
modified to call glue::glue_collapse()
if glue v1.3.0 or later is installed and glue::collapse()
otherwise. Eliminates a deprecation warning emanating from glue. (#222 @jimhester)