refdb_write_fields: Write fields to a file

View source: R/fields.R

refdb_write_fieldsR Documentation

Write fields to a file

Description

This function can be used to save fields defined using e.g. refdb_set_fields to a file. Data are saved in YAML and can be read again using the config_yaml argument of refdb_set_fields.

Usage

refdb_write_fields(x, file)

Arguments

x

a reference database with some fields to be saved.

file

a path to the file to write.

Value

No return value, called for its side effects.

Examples

lib <- read.csv(system.file("extdata", "ephem.csv", package = "refdb"))
tmp <- tempfile()
refdb_write_fields(lib, tmp)


refdb documentation built on Sept. 22, 2022, 5:07 p.m.