-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
122 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# xml_attrs<- modifies all attributes | ||
|
||
`test` must be a list of named character vectors. | ||
Code | ||
xml_attrs(docs) <- "test" | ||
Condition | ||
Error in `xml_attrs<-`: | ||
! `test` must be a list of named character vectors. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# xml_child() errors if more than one search is given | ||
|
||
`1` and `2` must be of length 1. | ||
Code | ||
xml_child(x, 1:2) | ||
Condition | ||
Error in `xml_child()`: | ||
! `1` and `2` must be of length 1. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# error if missing ns spec | ||
|
||
Couldn't find prefix for url http://bar.com | ||
Code | ||
xml_name(bars, ns) | ||
Condition | ||
Error in `xml_name()`: | ||
! Couldn't find prefix for url http://bar.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
# write_xml errors for incorrect directory and with invalid inputs | ||
|
||
`file` must be a single string, not a character vector. | ||
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 | ||
|
||
`file` must be a single string, not a character vector. | ||
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 | ||
|
||
`file` must be a single string, not a character vector. | ||
Code | ||
write_xml(y, c(filename, "foo")) | ||
Condition | ||
Error in `write_xml()`: | ||
! `file` must be a single string, not a character vector. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters