Description Usage Arguments Author(s) Examples
View source: R/download_aria2.R
download papers batchly using aria2. srcFUN
function is used
to generate pdf download links. You can also construct src function personally
to support more.
1 | download_aria2(DOIs, srcFUN = NULL, outdir = ".", n = 8, Rshell = FALSE, ...)
|
srcFUN |
function used to generate pdf download links according to DOIs. If srcFUN is null, then this function will treat input parameter DOIs as download urls. |
outdir |
outdir name, string used to make new directory to save papers |
n |
maximum number of parallel downloads. We used aria2c to download papers batchly. In this function we set –max-concurrent-downloads, –split and –max-connection-per-server all equal to n. Detailed information about this parameters could be find in aria2c document https://aria2.github.io/manual/en/html/. |
Rshell |
whether execute aria2c command in R shell. If false, it will save command string to clipboard, and then you can paste this command in cmd OR other shells which can execute aria2c command |
... |
other parameter pass to srcFUN. |
Dongdong Kong kongdd@live.cn
1 2 3 4 5 6 7 8 9 | # First, you need to get doi;
# Second, you need to select the suitable srcFUN of corresponding database. If
# this package have not yet, you can consider to extend the srcFUN, or
# contact me directly.
## Not run:
DOIs <- rep("10.1175%2FJHM-D-15-0157.1", 4) # test aria2 parallel download
download_aria2(DOIs, outdir = "JHM", srcFUN = src_AMS, n = 4, Rshell = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.