signed_url | R Documentation |
Shares Amazon CloudFront file. Currently only set up for teaching files;
see bin/signed-url
.
signed_url(file, out = stdout(), expiration = 365, r)
file |
Character vector of files to share. If path is included, it will be included in the download script save location. |
out |
A connection object or character string, as in
|
expiration |
How long until URLs expire (in days)? Numeric. Default: 365. |
r |
Output R code (as opposed to link)? By default, the
function will return links if |
Either a url or R script. The latter is particularly useful for batch downloads and specifying file save paths.
## Not run:
signed_url('~/pdf/teaching/7110-f23/dk-1.pdf')
signed_url('~/pdf/teaching/7110-f23/dk-*.pdf', r=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.