Description Usage Arguments Details Value Examples
Uploads a data frame to Google Drive, make it shareable, and
copies the shareable link onto the clipboard. Requires that OAuth
has been set up. googledrive
should help you through this if you
haven't set OAuth up already.
1 | get_shareable_link_to_data(data, path, direct = TRUE)
|
data |
A data frame, tibble or other object that be written to a CSV. |
path |
What to call the data file, as a character. Can also be a file path for more precise placement of the data file. Path must exist both locally and in Google Drive (really, I'm not sure what happens when it doesn't). |
direct |
If |
Creates an intermediate local CSV that is deleted after upload is complete.
Invisibly returns the link as a character vector.
1 2 3 4 5 6 7 | # link for direct download / immediate use
lnk <- get_shareable_link_to_data(mtcars, "mtcars.csv")
mt <- read.csv(lk)
head(mt)
# link to nice preview
get_shareable_link_to_data(mtcars, "mtcars.csv", direct = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.