Skip to content

Commit

Permalink
Caught/fixed some typos with devtools::spell_check
Browse files Browse the repository at this point in the history
  • Loading branch information
njlyon0 committed Apr 12, 2024
1 parent 1bda68d commit 694b5cc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/force_num.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description Coerces a vector into a numeric vector and automatically silences `NAs introduced by coercion` warning. Useful for cases where non-numbers are known to exist in vector and their coercion to NA is expected / unremarkable. Essentially just a way of forcing this coercion more succinctly than wrapping `as.numeric` in `suppressWarnings`.
#'
#' @param x (non-numeric) vector containing elements to be coereced into class numeric
#' @param x (non-numeric) vector containing elements to be coerced into class numeric
#'
#' @return (numeric) vector of numeric values
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/rmd_export.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @param rmd (character) name and path to R markdown file to knit
#' @param out_path (character) path to the knit file's destination (defaults to path returned by `getwd`)
#' @param out_name (character) desired name for knit file (with or without file suffix)
#' @param out_type (character) either "html" or "pdf" depending on what YML entry you have in the `output: ` field of your R Markdown file
#' @param out_type (character) either "html" or "pdf" depending on what YAML entry you have in the `output: ` field of your R Markdown file
#' @param drive_link (character) full URL of drive folder to upload the knit document
#'
#' @return No return value, called to knit R Markdown file
Expand Down
2 changes: 1 addition & 1 deletion R/tabularize_md.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#'
#' @param file (character/url connection) name and file path of markdown file to transform into a table or a connection object to a URL of a markdown file (see `?base::url` for more details)
#'
#' @return (dataframe) table with one additional column than there are heading levels in the document (e.g., if first and second level headings are in the document, the resulting table will have three columns) and one row per line of non-heading content in the markdwon file.
#' @return (dataframe) table with one additional column than there are heading levels in the document (e.g., if first and second level headings are in the document, the resulting table will have three columns) and one row per line of non-heading content in the markdown file.
#'
#' @importFrom magrittr %>%
#' @importFrom magrittr %<>%
Expand Down
2 changes: 1 addition & 1 deletion man/force_num.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/rmd_export.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/tabularize_md.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/supportR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ supportR::summary_table(data = penguins, groups = c("species", "island"),
response = "bill_length_mm", drop_na = T)
```

The `safe_rename` function allows--perhaps predicatably--"safe" renaming of column names in a given data object. The 'bad' column names and corresponding 'good' names must be specified. The order of entries in the two vectors must match (i.e., the first bad name will be replaced with the first good name), but that order need not match the order in which they occur in the data!
The `safe_rename` function allows--perhaps predictably--"safe" renaming of column names in a given data object. The 'bad' column names and corresponding 'good' names must be specified. The order of entries in the two vectors must match (i.e., the first bad name will be replaced with the first good name), but that order need not match the order in which they occur in the data!

```{r safe-rename}
# Make a dataframe to demonstrate
Expand Down

0 comments on commit 694b5cc

Please sign in to comment.