download_httr: download using httr

Description Usage Arguments Examples

View source: R/download_httr.R

Description

Download using httr package by hadley

Usage

1
download_httr(DOIs, srcFUN = NULL, outdir = ".", ...)

Arguments

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

...

other parameter pass to srcFUN.

Examples

1
2
3
4
5
6
7
8
# 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: 
download_httr("10.1175%2FJHM-D-15-0157.1", outdir = ".", srcFUN = src_AMS)

## End(Not run)

kongdd/rscihub documentation built on May 27, 2021, 7:15 p.m.