Skip to content

Commit

Permalink
Fix typos (r-lib#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
musvaage authored Nov 2, 2023
1 parent 9a5bbcd commit 066c3a5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ roxygen2 issues can be tricky to create a minimal reprex for. There are two gene
problem goes away. Once you've done that, sometimes you'll be able to
reduce the problem further to a call to `roc_proc_text()` as above. If not,
you'll need to make your minimal package available somewhere on the internet
(preferrably github) and link to it in the issue. The more you can do to
(preferably github) and link to it in the issue. The more you can do to
make the package as small as possible, the less time it'll take me to
find the bug, and the more time I'll have to work on it.
Expand Down
2 changes: 1 addition & 1 deletion src/parser2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ cpp11::list tokenise_block(cpp11::strings lines, std::string file,
RoxygenLine line((std::string(lines[i])));

if (!line.consumeRoxygenComment()) {
// Incremenet curRow for non-roxygen comments at start of block
// Increment curRow for non-roxygen comments at start of block
if (curVal.empty())
curRow++;
continue;
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/rd-section.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# warn if forgotton colom
# warn if forgotten colon

[<text>:4] @section title spans multiple lines.
i Did you forget a colon (:) at the end of the title?
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/tag-parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@
# tag_inhert checks for valid inherits

Code
tag <- roxy_test_tag("foo params sction")
tag <- roxy_test_tag("foo params section")
. <- tag_inherit(tag)
Condition
Warning:
[test.R:1] @test attempts to inherit from unknown type "sction"
[test.R:1] @test attempts to inherit from unknown type "section"

# tag_name() checks for valid names

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-rd-section.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_that("warn if forgotton colom", {
test_that("warn if forgotten colon", {
expect_snapshot_warning(
roc_proc_text(rd_roclet(), "
#' Foo
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-rd-template.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test_that("can find template from name", {
file.path(base, "man-roxygen", "UCase.R")
)

# On case-insentive file systems, will find upper case version first
# On case-insensitive file systems, will find upper case version first
expect_equal(
tolower(template_find(base, "lcase")),
tolower(file.path(base, "man-roxygen", "lcase.r"))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-tag-parser.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test_that("tags check for mismatched parents gives useful warnings", {

test_that("tag_inhert checks for valid inherits", {
expect_snapshot({
tag <- roxy_test_tag("foo params sction")
tag <- roxy_test_tag("foo params section")
. <- tag_inherit(tag)
})
})
Expand Down
2 changes: 1 addition & 1 deletion vignettes/rd-formatting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Either avoid expensive computations, or turn on knitr caching with `cache = TRUE
Make sure to omit the cache from the package with `usethis::use_build_ignore()`.

Note that knitr will call the appropriate `print()` or (if available) `knitr::knit_print()` method on the result.
This may geenrate markdown not supported by roxygen2.
This may generate markdown not supported by roxygen2.
If needed, override the automatic methods to have your R calls return your own markdown as a character vector, wrapped in `knitr::asis_output()`.

### Chunk options
Expand Down

0 comments on commit 066c3a5

Please sign in to comment.