Skip to contents

Fetches an experiment and extracts candidate resources from its body text.

Usage

krt_import_elabftw(
  base_url,
  experiment_id,
  token = Sys.getenv("ELABFTW_TOKEN"),
  timeout = 30
)

Arguments

base_url

The eLabFTW instance base URL (e.g. https://elab.example.org).

experiment_id

The experiment id.

token

API token (defaults to ELABFTW_TOKEN).

timeout

Request timeout in seconds.

Value

A krt_tbl of extracted resources.

Examples

if (FALSE) { # \dontrun{
# Not executable without an eLabFTW instance and an API token, so this
# example cannot be run during a check.
krt_import_elabftw("https://elab.example.org", experiment_id = 42)
} # }