| .dlGooglePublic | R Documentation |
Internal. Used by dlGoogle() when the user supplies the public web-download
form of a Drive URL (or sets reproducible.gdriveNoAuth = TRUE). It fetches
the file over plain HTTPS via dlGeneric() – no googledrive token required.
.dlGooglePublic(
url,
destinationPath,
targetFile,
verbose = getOption("reproducible.verbose", 1)
)
url |
The original Google Drive URL (any form). |
destinationPath |
Directory to download into. |
targetFile |
The resolved Drive filename (so the on-disk name and checksum bookkeeping match the authenticated path). |
verbose |
Numeric verbosity level. |
Small files stream directly. Large files (>~100 MB, or any that trip Drive's
"can't scan for viruses" check) first return an HTML interstitial carrying a
one-time confirm token and uuid; these are parsed out and the request is
resubmitted to drive.usercontent.google.com/download. If the second attempt
still returns HTML, the file is almost certainly not shared "Anyone with the
link" and we error rather than silently save the page.
A list with destFile.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.