Skip to content

Commit 9c6d1dd

Browse files
committed
spelling fixes
1 parent 989442d commit 9c6d1dd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

R/Element.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Element <- setRefClass(
182182
},
183183

184184
getChild = function(name) {
185-
"Retrun the first child element matching the name"
185+
"Return the first child element matching the name"
186186
for (content in contentList) {
187187
if ("Element" == class(content) & content$getName() == name) {
188188
#print(paste("Found child element", content))

R/xmlConverter.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#' @title Create a data frame from a xmlr Element
22
#' @description This is a convenience method to take all the children of the given Element
33
#' and create a data frame based on the content of each child where each child constitutes a row
4-
#' and the attributes or elements (including text) will constiture the columns.
5-
#' It assumes a homeogenous structure and the column names are takes from the first child
4+
#' and the attributes or elements (including text) will constitute the columns.
5+
#' It assumes a homogeneous structure and the column names are takes from the first child
66
#' @return a data frame
77
#' @param element the element to convert
88

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ The jdom project (www.jdom.org) provided a lot of initial inspiration for the ap
88
approach in the sense that namespace declarations are just another element attribute and name space prefixes are part of the
99
element name. This might change in the future but for now this is how it is done.
1010

11-
You can create and xmlr Document programatically or by parsing text or a file.
11+
You can create and xmlr Document programmatically or by parsing text or a file.
1212

13-
# Creating the DOM programatically
13+
# Creating the DOM programmatically
1414
To create the following xml
1515
```
1616
<table xmlns='http://www.w3.org/TR/html4/'>

vignettes/xmlr.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Creates or updates an existing attribute for the name and value supplied. E.g. `
144144
This sets all the attributes of the Element to the list given. Note that you MUST supply a named list for this to work.
145145
Any existing attribute will vanish.
146146
* **addAttributes(attributes)**
147-
Similar to setAttributes but will not erase any exsting attributes.
147+
Similar to setAttributes but will not erase any existing attributes.
148148
* **hasAttributes()**
149149
TRUE if any attributes are defined for the element.
150150

0 commit comments

Comments
 (0)