Description Usage Arguments Value Examples
View source: R/write_pubmed_files.R
Save PubMed files as unparsed XML in ".txt" files, so that user can choose to parse with 'XML' or 'xml2' packages.
1 | write_pubmed_files(pubmed_data, dir = here::here(), prefix = "")
|
pubmed_data |
Character vector of unparsed XML with root node "PubmedArticleSet". Generally the output of |
dir |
Directory to save files to. Default = current directory via |
prefix |
Prefix to append to filename (optional) |
SIDE-EFFECT. Unparsed XML in ".txt" files with batch number
1 2 3 4 5 6 7 8 9 | my_dois <- c("10.1186/s12970-020-0336-1", "10.1016/S0140-6736(19)32971-X", "10.1056/NEJMoa1905239", "10.1371/journal.pone.0226893", "10.1016/S2352-3026(19)30207-8")
## Not run:
batch_dois() %>%
create_query_strings() %>%
batch_fetch_pubmed_records() %>%
write_pubmed_files()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.