x3p_add_meta: Add/change xml meta information in x3p object

View source: R/addtemplate_x3p.R

x3p_add_metaR Documentation

Add/change xml meta information in x3p object

Description

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

x3ptools documentation built on May 29, 2024, 10:33 a.m.