fetch.config {configr}R Documentation

Fetch configuration file and generate a merged list

Description

Fetch configuration file and generate a merged list

Usage

fetch.config(
  links,
  return.files = FALSE,
  destdir = normalizePath("./"),
  keep.basename = TRUE,
  ...
)

Arguments

links

Url or files path that need to be merged, e.g. /tmp/config, http://, ftp://.

return.files

Only save the links configuration files to destdir and not to read and merge the configuration files, default is FALSE

destdir

Fetch configuration files and copy to this directory, default is ./

keep.basename

Whather use the links basename as the saved name or use paste0(tempfile(), '_configr')

...

Extra parameters pass to read.config

Value

A list or a vector

Examples

links <- c(paste0('https://raw.githubusercontent.com/JhuangLab', 
'/BioInstaller/master/inst/extdata/config/db/db_annovar.toml'), 
paste0('https://raw.githubusercontent.com/JhuangLab/BioInstaller', 
'/master/inst/extdata/config/db/db_main.toml'), 
system.file('extdata', 'config.toml', package = 'configr'))
x <- fetch.config(links)

[Package configr version 0.3.5 Index]