Runs datum 1.6.0's non-interactive init command. Create either an empty,
schema-valid configuration or a configuration containing one HTTP or file
dataset. Existing configuration files are never overwritten by datum.
Usage
datum_init(
id = NULL,
type = NULL,
source = NULL,
target = NULL,
desc = NULL,
policy = NULL,
ignore = NULL,
empty = FALSE,
config = ".data.yaml",
executable = NULL,
wd = NULL,
timeout = getOption("datur.timeout", 300)
)Arguments
- id, type, source, target
Initial dataset values. All four are required unless
empty = TRUE.- desc
Optional initial dataset description.
- policy
Optional default
"fail","update", or"log"policy.- ignore
Optional default logical VCS-ignore setting.
NULLleaves the flag unspecified.- empty
Create a configuration with no datasets.
- config
Configuration path.
- executable
Optional explicit executable path.
- wd
Optional child-process working directory.
- timeout
Positive finite timeout in seconds.
