Learn R Programming

icesTAF (version 4.3.0)

artifact: Make an Artifact File Entry

Description

Form and validate an artifact as an export from a TAF repository.

Usage

artifact(path, type = c("adhoc", "FLStock", "SAG"), ..., check = TRUE,
  quiet = FALSE)

Arguments

path

The relative path to a file to be added, e.g. "data/indices.csv".

type

the type of output, e.g. FLStock, SAG_upload

...

a list of metadata to be attributed to the entry.

check

logical, should the artifact be checked for validity?

quiet

logical, should the function be quiet?

See Also

check.artifact write.artifacts

Examples

Run this code

sag_file <- system.file("SAG", "sol_27_4.xml", package = "icesTAF")
sag <- artifact(sag_file, type = "SAG", check = FALSE)
sag

if (FALSE) {
# to check the artifact, use:
sag <- artifact(tmpfile, type = "SAG")
# or
check.artifact(sag)
}

Run the code above in your browser using DataLab