Skip to content

Conversation

@wkumler
Copy link
Contributor

@wkumler wkumler commented May 10, 2021

One xml_text example includes the following comment:

#' # xml_double() and xml_integer() are useful for extracting numeric attributes

However, this text was previously spread across two lines:

#' # xml_double() and xml_integer() are useful for extracting numeric 
#' attributes

with the second line missing the # in front of it. When these examples are run (i.e. in the reference docs), this extra text is treated as R code and run. Because attributes is an R function, the output is not what's intended:

# xml_double() and xml_integer() are useful for extracting numeric
attributes
#> function (x)  .Primitive("attributes")

This PR fixes this minor issue by simply moving the hanging word to the line above, which gives it a line length of exactly 80. An alternative solution if lines should be strictly less than 80 would be simply adding a new # in front of this line instead.

@hadley hadley merged commit c21eae1 into r-lib:main Apr 24, 2023
@hadley
Copy link
Member

hadley commented Apr 24, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants