Skip to contents

Use a specified template to overwrite the general info in the x3p object (and structure of the feature info, if needed).

Usage

x3p_add_meta(x3p, template = NULL)

addtemplate_x3p(x3p, template = NULL)

Arguments

x3p

x3p object

template

file path to xml template, use NULL for in-built package template

Examples

logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
# exchange meta information for general x3p information:
logo <- x3p_add_meta(logo, template = system.file("templateXML.xml", package="x3ptools"))
logo$general.info
#> $Date
#> $Date[[1]]
#> [1] "2013-12-26T16:06:00"
#> 
#> 
#> $Creator
#> $Creator[[1]]
#> [1] "Creator Name"
#> 
#> 
#> $Instrument
#> $Instrument$Manufacturer
#> $Instrument$Manufacturer[[1]]
#> [1] "Manufacturer Name"
#> 
#> 
#> $Instrument$Model
#> $Instrument$Model[[1]]
#> [1] "Model"
#> 
#> 
#> $Instrument$Serial
#> $Instrument$Serial[[1]]
#> [1] "Serial"
#> 
#> 
#> $Instrument$Version
#> $Instrument$Version[[1]]
#> [1] "Version"
#> 
#> 
#> 
#> $CalibrationDate
#> $CalibrationDate[[1]]
#> [1] "Date of Calibration"
#> 
#> 
#> $ProbingSystem
#> $ProbingSystem$Type
#> $ProbingSystem$Type[[1]]
#> [1] "Type"
#> 
#> 
#> $ProbingSystem$Identification
#> $ProbingSystem$Identification[[1]]
#> [1] "Identification"
#> 
#> 
#> 
#> $Comment
#> $Comment[[1]]
#> [1] "comment"
#> 
#>