board_gdrive {pins} | R Documentation |
Use a Google Drive folder as a board
Description
Pin data to a folder in Google Drive using the googledrive package.
Usage
board_gdrive(path, versioned = TRUE, cache = NULL)
Arguments
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. |
Details
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 withgoogledrive::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, addrequireNamespace("googledrive")
to your app or document for automatic dependency discovery.
Examples
## 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)