Skip to contents

Creates the named list used by datum_dataset_add() and datum_dataset_update(). Field names and required values are checked against the source requirements embedded in the installed datum 1.4.0-or-newer executable.

Usage

datum_source(
  type,
  ...,
  executable = NULL,
  wd = NULL,
  timeout = getOption("datur.timeout", 300)
)

Arguments

type

One datum source type, such as "http", "file", "git", or "command".

...

Named source fields for that type.

executable

Optional explicit executable path.

wd

Optional child-process working directory.

timeout

Positive finite timeout in seconds.

Value

A named list suitable for source or an element of sources.

Examples

if (FALSE) { # \dontrun{
datum_source("http", url = "https://example.test/data.csv")
datum_source("file", path = "upstream/data.csv")
} # }