Skip to content

Reach out and touch your files

Retrieve metadata on your Drive files so you can act on them

drive_find()
Find files on Google Drive
drive_ls()
List contents of a folder or shared drive
drive_get()
Get Drive files by path or id
drive_reveal()
Add a new column of Drive file information
drive_browse()
Visit Drive file in browser
drive_read_string() drive_read_raw()
Read the content of a Drive file

File creation and deletion

Create or delete Drive files and folders

drive_upload()
Upload into a new Drive file
drive_put()
PUT new media into a Drive file
drive_download()
Download a Drive file
drive_create()
Create a new blank Drive file
drive_mkdir()
Create a Drive folder
drive_cp()
Copy a Drive file
drive_mv()
Move a Drive file
drive_rename()
Rename a Drive file
drive_update()
Update an existing Drive file
drive_trash() drive_untrash()
Move Drive files to or from trash
drive_empty_trash()
Empty Drive Trash
drive_rm()
Delete files from Drive
drive_examples_local() drive_examples_remote() drive_example_local() drive_example_remote()
Example files

Share your files with the world

View or change the sharing and publishing status of Drive files

drive_publish() drive_unpublish()
Publish native Google files
drive_share() drive_share_anyone()
Share Drive files
drive_reveal()
Add a new column of Drive file information
drive_link()
Retrieve Drive file links

Shared drives

Manipulate and explore shared drives

Shortcuts

Similar to local file shortcuts, aliases, or symbolic links

Dribble object

Metadata about Drive files is stored in a “Drive tibble” a.k.a. a dribble

Authorization

Take explicit control of the Google auth status or examine current state

drive_user()
Get info on current user
drive_about()
Get info on Drive capabilities
drive_auth()
Authorize googledrive
drive_deauth()
Suspend authorization
drive_auth_configure() drive_api_key() drive_oauth_client()
Edit and view auth configuration
drive_scopes()
Produce scopes specific to the Drive API

Drive API spec

Summon info about or check input against the Drive API spec

drive_endpoints() drive_endpoint()
List Drive endpoints
drive_extension()
Lookup extension from MIME type
drive_fields() prep_fields()
Request partial resources
drive_mime_type()
Lookup MIME type
expose()
An expose object

Programming around the Drive API

Low-level functions used internally and made available for programming

request_generate()
Build a request for the Google Drive API
request_make() do_request() do_paginated_request()
Make a request for the Google Drive v3 API
drive_auth_configure() drive_api_key() drive_oauth_client()
Edit and view auth configuration
drive_token()
Produce configured token
drive_has_token()
Is there a token on hand?

Package-level configuration

local_drive_quiet() with_drive_quiet()
googledrive configuration