Skip to content

Commit a234d5d

Browse files
committed
spelling
1 parent c6b3fd3 commit a234d5d

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
- `formals` argument to `chk_function()`.
3131
- `tidy = TRUE` argument to errors, warnings and messages.
32-
- `n = NULL` and `call. = FALSE` args to error message generating funcions.
32+
- `n = NULL` and `call. = FALSE` args to error message generating functions.
3333
- `ellipsis = 10L` argument to `cc()`.
3434
- `sep = ", "` arg to `cc()`.
3535
- `incomparables = FALSE` argument to `chk_unique()`.
@@ -47,7 +47,7 @@
4747
## Minor Changes
4848

4949
- Changed `chk_match()` so ignores missing values.
50-
- Changed `chk_true()` (and `chk_false()`) to same behaviour as `isTRUE` in R >= 3.5.
50+
- Changed `chk_true()` (and `chk_false()`) to same behavior as `isTRUE` in R >= 3.5.
5151
- Extended `chk_unique()` to handle `incomparables != FALSE` with data frames.
5252
- Changed to `range = c(0,1)` for `chk_range()`.
5353

R/deprecated.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ vld_no_missing <- function(x) {
255255
!anyNA(x)
256256
}
257257

258-
#' @describeIn deparse_backtick_chk Deparse Back Tick
258+
#' @describeIn deparse_backtick_chk Deparse Backtick
259259
#'
260260
#' \lifecycle{soft-deprecated}
261261
#'

R/utils.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abort_chk <- function(..., n = NULL, tidy = TRUE) {
1818
err(..., n = n, tidy = tidy, .subclass = "chk_error")
1919
}
2020

21-
#' Deparse Back Tick
21+
#' Deparse Backtick
2222
#'
2323
#' `deparse_backtick_chk` is a wrapper on [deparse()]
2424
#' and `backtick_chk`.
@@ -27,7 +27,7 @@ abort_chk <- function(..., n = NULL, tidy = TRUE) {
2727
#'
2828
#' @param x A substituted object to deparse.
2929
#'
30-
#' @return A string of the back ticked substituted object.
30+
#' @return A string of the backticked substituted object.
3131
#' @seealso [deparse()]
3232
#' @export
3333
#'
@@ -38,10 +38,10 @@ abort_chk <- function(..., n = NULL, tidy = TRUE) {
3838
#' deparse_backtick_chk(2^2)
3939
deparse_backtick_chk <- function(x) backtick_chk(deparse(x))
4040

41-
#' @describeIn deparse_backtick_chk Back Tick
41+
#' @describeIn deparse_backtick_chk Backtick
4242
#' @export
4343
backtick_chk <- function(x) p0("`", x, "`")
4444

45-
#' @describeIn deparse_backtick_chk Unback Tick
45+
#' @describeIn deparse_backtick_chk Unbacktick
4646
#' @export
4747
unbacktick_chk <- function(x) gsub("`", "", x)

man/deparse_backtick_chk.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/chk-benchmarking.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ In summary, avoiding `chk_flag()` saves about `r signif(diff(times$median[c(4,3)
5656
It is recommended to always use unconditional checking unless [profiling](http://adv-r.had.co.nz/Profiling.html) indicates the checks are a bottleneck.
5757

5858
If the bottleneck is due to repeated calls within the package the recommended option is to write an internal version of the function that has no checks.
59-
Alternatively if the bottleneck is due to repeated calls by a user or other package then the recommended option is to add a chk argument that the user can explicity turn off.
59+
Alternatively if the bottleneck is due to repeated calls by a user or other package then the recommended option is to add a chk argument that the user can explicitly turn off.
6060

6161
## `chk` Times
6262

0 commit comments

Comments
 (0)