Pin data to a folder in Google Drive using the googledrive package.
board_gdrive(path, versioned = TRUE, cache = NULL)
Path to existing directory on Google Drive to store pins. Can be
given as an actual path like "path/to/folder"
(character), a file id or
URL marked with googledrive::as_id()
, or a googledrive::dribble.
Should this board be registered with support for versions?
Cache path. Every board requires a local cache to avoid downloading files multiple times. The default stores in a standard cache location for your operating system, but you can override if needed.
The functions in pins do not create a new Google Drive folder. You can
create a new folder from R with googledrive::drive_mkdir()
, and then set
the sharing for your folder with googledrive::drive_share()
.
If you have problems with authentication to Google Drive, learn more at
googledrive::drive_auth()
.
board_gdrive()
is powered by the googledrive package, which is a
suggested dependency of pins (not required for pins in general). If
you run into errors when deploying content to a server like
https://www.shinyapps.io or Connect,
add requireNamespace("googledrive")
to your app or document for automatic dependency discovery.