Description Usage Arguments References Examples
Similar to drop_shared
. The difference is that this bypasses the
Dropbox webserver, used to provide a preview of the file, so that you can
effectively stream the contents of your media. This URL should not be used to
display content directly in the browser. IMPORTANT: The media link will expire
after 4 hours. So you'll need to cache the content with knitr cache OR re-run
the function call after expiry.
1 | drop_media(path = NULL, dtoken = get_dropbox_token())
|
path |
Path in the user's Dropbox, relative to root |
dtoken |
The Dropbox token generated by |
1 2 3 4 | ## Not run:
drop_media('Public/gifs/duck_rabbit.gif')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.