An Interface to Google Drive

Manage Google Drive files from R.


CRAN_Status_Badge Build StatusAppVeyor Build Statuscodecov

Overview

googledrive allows you to interact with files on Google Drive from R.

Installation

Install the CRAN version:

install.packages("googledrive")

Or install the development version from GitHub:

devtools::install_github("tidyverse/googledrive")

Usage

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>

Contributing

If you'd like to contribute to the development of googledrive, please read these guidelines.

News

googledrive 0.1.3

Minor patch release for compatibility with the imminent release of purrr 0.3.0.

googledrive 0.1.2

  • Internal usage of 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)

googledrive 0.1.1

  • initial CRAN release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("googledrive")

1.0.0 by Jennifer Bryan, 4 months ago


https://googledrive.tidyverse.org, https://github.com/tidyverse/googledrive


Report a bug at https://github.com/tidyverse/googledrive/issues


Browse source code at https://github.com/cran/googledrive


Authors: Lucy D'Agostino McGowan [aut] , Jennifer Bryan [aut, cre] , RStudio [cph, fnd]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports curl, gargle, glue, httr, jsonlite, magrittr, purrr, rlang, tibble, utils, uuid

Suggests covr, dplyr, knitr, rmarkdown, roxygen2, sodium, testthat


Imported by googlesheets4, reproducible.

Suggested by rchie.


See at CRAN