ftd_prefixes: Prefixes

Description Usage Arguments Value Examples

View source: R/prefixes.R

Description

Prefixes

Usage

1

Arguments

id

(character) a DOI prefix. Default is NULL, which gets all

Value

named list of details of the publisher for the DOI prefix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
ftdoi_cache$cache_path_set(path="foo", type="tempdir")
ftdoi_cache
ftdoi_cache_init()
ftd_fetch_patterns()
z <- list.files(file.path(ftdoi_cache$cache_path_get(), "patterns"))
if (length(z)) {
  ftd_prefixes(id = '10.1080')
}

## Not run: 
ftd_prefixes()
ftd_prefixes(id = '10.1080')

# doesn't work
# ftd_prefixes(id = '10.9999')

## End(Not run)

ropenscilabs/rftdoi documentation built on Oct. 17, 2020, 5:59 a.m.