1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# write_xml errors for incorrect directory and with invalid inputs
Code
write_xml(x, c("test.xml", "foo"))
Condition
Error in `write_xml()`:
! `file` must be a single string, not a character vector.
# write_xml works with nodeset input and connections
Code
write_xml(y[1], c(filename, "foo"))
Condition
Error in `write_xml()`:
! `file` must be a single string, not a character vector.
# write_xml works with node input and files
Code
write_xml(y, c(filename, "foo"))
Condition
Error in `write_xml()`:
! `file` must be a single string, not a character vector.
|