View source: R/doc_download_function.R
doc_download | R Documentation |
This function downloads a file to the specified location. It's a wrapper for
download.file
and helps extract lots of files into ordered directory trees.
Use with doc_meta_extract
and doc_getlink
for best results.
doc_download(doc_id, mkey, dl_loc, filename, doc_type)
doc_id |
Document number |
mkey |
Authorisation key |
dl_loc |
The location you want to download the file to, ending in a |
filename |
The name you want to give the file |
doc_type |
The filetype of the document. Should be one of |
Downloads the file to the location specified in the specified format. Expect warning messages for directories that exist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.