as_tdmurl | R Documentation |
A tmd url is just a URL with some attributes to make it easier to handle within other functions in this package.
as_tdmurl(url, type, doi = NULL, member = NULL, intended_application = NULL) ## S3 method for class 'tdmurl' as_tdmurl(url, type, doi = NULL, member = NULL, intended_application = NULL) ## S3 method for class 'character' as_tdmurl(url, type, doi = NULL, member = NULL, intended_application = NULL)
url |
(character) A URL. |
type |
(character) One of 'xml' (default), 'html', 'plain', 'pdf', 'unspecified', or 'all' |
doi |
(character) A DOI, optional, default: |
member |
(character) Crossref member id. optional |
intended_application |
(character) intended application string, optional |
as_tdmurl("http://downloads.hindawi.com/journals/bmri/2014/201717.xml", "xml") as_tdmurl("http://downloads.hindawi.com/journals/bmri/2014/201717.pdf", "pdf") out <- as_tdmurl("http://downloads.hindawi.com/journals/bmri/2014/201717.pdf", "pdf", "10.1155/2014/201717") attributes(out) identical(attr(out, "type"), "pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.