R/xml.R

Defines functions qread.xml qwrite.xml

#' @method qread xml
#' @export
qread.xml <- function(file, type, ...) {
	.check_package("XML");

	XML::xmlParse(file, ...)
}

#' @method qwrite xml
#' @export
qwrite.xml <- function(x, file, type, ...) {
	.check_package("XML");

	XML::saveXML(x, file, ...)
}

Try the io package in your browser

Any scripts or data that you put into this service are public.

io documentation built on Dec. 18, 2019, 1:39 a.m.