auth_success <- tryCatch( googledrive:::drive_auth_docs(), googledrive_auth_internal_error = function(e) e ) knitr::opts_chunk$set( collapse = TRUE, comment = "#>", error = TRUE, purl = googledrive::drive_has_token(), eval = googledrive::drive_has_token() )
googledrive:::drive_bullets(c( "Code chunks will not be evaluated, because:", strsplit(auth_success$message, split = "\n")[[1]] )) googledrive::drive_deauth()
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:
# install.packages("pak") pak::pak("tidyverse/googledrive")
Please see the package website: https://googledrive.tidyverse.org
Here's a teaser that uses googledrive to view some of the files you see on https://drive.google.com (up to n_max = 25
, in this case):
library("googledrive") drive_find(n_max = 25)
If you'd like to contribute to the development of googledrive, please read these guidelines.
Please note that the googledrive project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.