board_gdrive | R Documentation |
Pin data to a folder in Google Drive using the googledrive package.
board_gdrive(path, versioned = TRUE, cache = NULL)
path |
Path to existing directory on Google Drive to store pins. Can be
given as an actual path like |
versioned |
Should this board be registered with support for versions? |
cache |
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.
## Not run:
board <- board_gdrive("folder-for-my-pins")
board %>% pin_write(1:10, "great-integers", type = "json")
board %>% pin_read("great-integers")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.