r-lib / xmlparsedata

R code parse data as an XML tree
https://r-lib.github.io/xmlparsedata/
Other
23 stars 7 forks source link

includeText=FALSE not working #13

Closed renkun-ken closed 4 years ago

renkun-ken commented 4 years ago

includeText = FALSE does not work:

e <- parse(text = "x <- 1")
xmlparsedata::xml_parse_data(e,
  includeText = FALSE)
Error in enc2utf8(pd$text) : argument is not a character vector
Backtrace:
1: xmlparsedata::xml_parse_data(e, includeText = FALSE)