setRunspecValue: setRunspecValue

View source: R/r4moves.R

setRunspecValueR Documentation

setRunspecValue

Description

Sets an attibute in a runspec XML::xmlParse() object.

Usage

setRunspecValue(runspec, xpathsLocation, value, cdata = FALSE)

Arguments

runspec

XML::xmlParse() object

xpathsLocation

string in the format of an XPath (https://way2tutorial.com/xml/xpath-expression.php)

value

string to set the value in the selected node to #'

Value

XML::xNodeSet() of the node from runspec

Examples

setRunspecValue(rs, "//description", "MOVES Test Run 2")

hlinak/R-for-MOVES documentation built on Jan. 31, 2023, 2:03 p.m.