Skip to content

Commit

Permalink
Fix spelling mistakes (#2318)
Browse files Browse the repository at this point in the history
Closes #2311
  • Loading branch information
musvaage authored Jul 19, 2023
1 parent 39083f3 commit c920680
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Markdown code with chunks) (@idavydov, #2237).
* Package logos will be automatically stripped from the `.Rd` you don't end
up with two on one page. (#2083).

* `\figure{file}{alternative text}` with multline alt text is now parsed
* `\figure{file}{alternative text}` with multiline alt text is now parsed
correctly (#2080)

* roxygen 7.2.0 output for generic code blocks (#2092, @jabenninghoff) is
Expand Down Expand Up @@ -250,9 +250,9 @@ Markdown code with chunks) (@idavydov, #2237).
pkgdown includes translations for:

* `es`, Spanish, thanks to @edgararuiz-zz, @dieghernan, @rivaquiroga.
* `de`, German, thnaks to @hfrick.
* `de`, German, thanks to @hfrick.
* `fr`, French, thanks to @romainfrancois, @lionel-, @jplecavalier, and @maelle.
* `pt`, Portoguese, thanks to @rich-iannone.
* `pt`, Portuguese, thanks to @rich-iannone.
* `tr`, Turkish, thanks to @mine-cetinkaya-rundel.
* `zh_CN`, simplified Chinese, thanks to @yitao.

Expand Down Expand Up @@ -657,7 +657,7 @@ Markdown code with chunks) (@idavydov, #2237).
(#1045).

* There's much richer control over Open Graph and Twitter metadata for the
whote site and for individual articles. See new `vignette("metadata")` for
whole site and for individual articles. See new `vignette("metadata")` for
details (@gadenbuie, #936).

* New `deploy_to_branch()` function to build and deploy a site to a branch,
Expand Down
2 changes: 1 addition & 1 deletion R/build-articles.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ build_article <- function(name,
pkg <- as_pkgdown(pkg)

# Look up in pkg vignette data - this allows convenient automatic
# specification of depth, output destination, and other parmaters that
# specification of depth, output destination, and other parameters that
# allow code sharing with building of the index.
vig <- match(name, pkg$vignettes$name)
if (is.na(vig)) {
Expand Down
2 changes: 1 addition & 1 deletion R/build-news.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ data_news <- function(pkg = list()) {
sections <- xml2::xml_find_all(xml, "./body/div")
footnotes <- has_class(sections, "footnotes")
if (any(footnotes)) {
warn("Footnotes in NEWS.md are not currently suppoted")
warn("Footnotes in NEWS.md are not currently supported")
}
sections <- sections[!footnotes]

Expand Down
2 changes: 1 addition & 1 deletion R/topics-external.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ext_topics <- function(match_strings) {
)
}

# Adatpted from roxygen2::get_rd_from_help
# Adapted from roxygen2::get_rd_from_help
get_rd_from_help <- function(package, alias) {
check_installed(package, "as it's used in the reference index.")

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/build-news.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@
x <- data_news(pkg)
Condition
Warning:
Footnotes in NEWS.md are not currently suppoted
Footnotes in NEWS.md are not currently supported

2 changes: 1 addition & 1 deletion tests/testthat/assets/search-site/sitemaps-schema-0.9.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" targetNamespace="http://www.sitemaps.org/schemas/sitemap/0.9" elementFormDefault="qualified">
<xsd:annotation>
<xsd:documentation>
XML Schema for Sitemap files. Last Modifed 2008-03-26
XML Schema for Sitemap files. Last Modified 2008-03-26
</xsd:documentation>
</xsd:annotation>
<xsd:element name="urlset">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ add <- function() {

### Exercise with Hint

*Here's an exercise where the chunk is pre-evaulated via the `exercise.eval` option (so the user can see the default output we'd like them to customize). We also add a "hint" to the correct solution via the chunk immediate below labeled `print-limit-hint`.*
*Here's an exercise where the chunk is pre-evaluated via the `exercise.eval` option (so the user can see the default output we'd like them to customize). We also add a "hint" to the correct solution via the chunk immediate below labeled `print-limit-hint`.*

Modify the following code to limit the number of rows printed to 5:

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-highlight.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_that("highlight_examples captures depencies", {
test_that("highlight_examples captures dependencies", {
withr::defer(unlink(test_path("Rplot001.png")))

dummy_dep <- htmltools::htmlDependency("dummy", "1.0.0", "dummy.js")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-navbar.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test_that("can control articles navbar through articles meta", {
pkg_navbar(vignettes = vig, meta = list(...))
}

"Default: show all alpabetically"
"Default: show all alphabetically"
expect_snapshot(navbar_articles(pkg()))

"No navbar sections: link to index"
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-rd-example.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test_that("inline tags are stripped", {
expect_equal(rd2ex("\\dontrun{1}", run_dont_run = TRUE), "1")
})

test_that("blocks get fillers to preserve spacine", {
test_that("blocks get fillers to preserve spacing", {
expect_equal(rd2ex("\\donttest{\n 1\n}"), c("# \\donttest{", " 1", "# }"))
expect_equal(rd2ex("\\dontrun{\n 1\n}"), c("if (FALSE) {", " 1", "}"))
})
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-rd-html.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test_that("support platform specific code", {

# tables ------------------------------------------------------------------

test_that("tabular genereates complete table html", {
test_that("tabular generates complete table html", {
table <- "\\tabular{ll}{a \\tab b \\cr}"
expectation <- c("<table class='table'>", "<tr><td>a</td><td>b</td></tr>", "</table>")
expect_equal(rd2html(table), expectation)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/customise.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ If you need to include additional HTML, you can add it in the following location
template:
includes:
in_header: <!-- inserted at the end of the head -->
before_body: <!-- inserted at the beginging of the body -->
before_body: <!-- inserted at the beginning of the body -->
after_body: <!-- inserted at the end of the body -->
before_title: <!-- inserted before the package title in the header ->
before_navbar: <!-- inserted before the navbar links -->
Expand Down
2 changes: 1 addition & 1 deletion vignettes/test/rendering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Stuff

blop

### Tabset without pils {.tabset}
### Tabset without pills {.tabset}

#### Tab 1

Expand Down

0 comments on commit c920680

Please sign in to comment.