File: xml_write.md

package info (click to toggle)
r-cran-xml2 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 976 kB
  • sloc: cpp: 1,828; xml: 333; javascript: 238; ansic: 213; sh: 74; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
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.