Learn R Programming

⚠️There's a newer version (2.0.0) of this package.Take me there.

googledrive

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:

# install.packages("devtools")
devtools::install_github("tidyverse/googledrive")

Usage

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)
#> # A tibble: 14 x 3
#>    name                    id                              drive_resource  
#>  * <chr>                   <chr>                           <list>          
#>  1 chicken-perm-article.t… 1oWpfPYR-77c-DdvoW30682F9Gde8Z… <named list [39…
#>  2 googledrive-NEWS.md     15pfwRfXvpxekxhdERmSUnoxQY5K70… <named list [38…
#>  3 def                     1hr4EFw3r5vAMm5Jgw2SsFluBpN-oA… <named list [32…
#>  4 abc                     11lidFPceZAcNTHasQARiwAhE0NgmS… <named list [32…
#>  5 THANKS                  1zNZpVO4MCjNUFUHOwSv3WlyUh4Dq_… <named list [39…
#>  6 BioC_mirrors.csv        1vV0fPdNOyo3Ti9ofA38MuTQm27pXv… <named list [38…
#>  7 logo.jpg                1OFeNdd63NfoavqvDf5-xa3LORiamf… <named list [40…
#>  8 Rlogo.svg               11sxsw-ux-UjQjzVdxd1wjNz37hJeB… <named list [40…
#>  9 Rlogo.pdf               1cn7oVxQRgD0l_hCI4nrSSWrKeVFys… <named list [39…
#> 10 DESCRIPTION             1MjV4stVPhlMNz1AcrIizcL7yTcVaR… <named list [39…
#> 11 chicken.txt             1xmwFZ_UN-CSs3Ic2aPUw22DbxZxoe… <named list [39…
#> 12 chicken.pdf             1eK9ozP1TZjXfAgaAGmP9GrUTovGUa… <named list [39…
#> 13 chicken.jpg             1JnGjIdruQXErd20xR_ecAzN3yP_fT… <named list [40…
#> 14 chicken.csv             1eHoOi9Ch3zk3_QBRKCJajFEIO4aeG… <named list [38…

Contributing

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.

Privacy

Privacy policy

Copy Link

Version

Install

install.packages('googledrive')

Monthly Downloads

503,078

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 19th, 2019

Functions in googledrive (1.0.0)

drive_find

Find files on Google Drive
drive_put

PUT new media into a Drive file
drive_publish

Publish native Google files
drive_mime_type

Lookup MIME type
drive_trash

Move Drive files to or from trash
drive_get

Get Drive files by path or id
drive_ls

List contents of a folder or Team Drive
drive_token

Produce configured token
googledrive-deprecated

Deprecated googledrive functions
googledrive-package

googledrive: An Interface to Google Drive
team_drive_rm

Delete Team Drives
drive_download

Download a Drive file
drive_empty_trash

Empty Drive Trash
drive_extension

Lookup extension from MIME type
drive_auth_configure

Edit and view auth configuration
team_drive_create

Create a new Team Drive
drive_fields

Request partial resources
request_make

Make a request for the Google Drive v3 API
drive_reveal

Add column(s) with new information
drive_rename

Rename a Drive file
drive_rm

Delete files from Drive
drive_link

Retrieve Drive file links
team_drive_update

Update an existing Team Drive
drive_user

Get info on current user
drive_has_token

Is there a token on hand?
expose

An expose object
drive_example

Get path to example file
drive_endpoints

List Drive endpoints
drive_update

Update an existing Drive file
drive_upload

Upload into a new Drive file
drive_create

Create a new blank Drive file
drive_mkdir

Create a Drive folder
%>%

Pipe operator
drive_mv

Move a Drive file
drive_deauth

Suspend authorization
request_generate

Build a request for the Google Drive API
team_drive_get

Get Team Drives by name or id
team_drive_find

Find Team Drives
drive_share

Share Drive files
team_drives

Access Team Drives
drive_auth

Authorize googledrive
drive_about

Get info on Drive capabilities
as_team_drive

Coerce to Team Drive
drive_browse

Visit Drive file in browser
drive_cp

Copy a Drive file
as_dribble

Coerce to Drive files
dribble-checks

Check facts about a dribble
dribble

dribble object
as_id

Extract and/or mark as file id