check_doi: check outdir and doi

Description Usage Arguments Value

View source: R/tools.R

Description

Check whether outdir exist, if not then will create it. If doi was URLencoded, then decode it.

Usage

1
check_doi(doi, outdir)

Arguments

doi

Character, Digital Object Identifier, like "10.1175/JHM-D-15-0157.1", URLencoding format is also supported, i.e. "10.1175\ Based on doi, srcFUN find corresponding paper and download it.

outdir

Output directory

Value

URLdecode doi


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