Skip to content

Commit

Permalink
Document options in package docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hughjonesd committed Jun 10, 2024
1 parent 6d262cc commit d233bf1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
14 changes: 13 additions & 1 deletion R/santoku-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @import assertthat
NULL

#' A versatile cutting tool for R
#' A versatile cutting tool for R: package overview and options
#'
#' santoku is a tool for cutting data into intervals. It provides
#' the function [chop()], which is similar to base R's [cut()] or `Hmisc::cut2()`.
Expand Down Expand Up @@ -35,7 +35,19 @@ NULL
#' ```r
#' vignette("santoku")
#' ```
#'
#' For more details, start with the documentation for [chop()].
#'
#' # Options
#'
#' Santoku has two options:
#'
#' * `options("santoku.infinity")` sets the symbol for infinity in breaks. The default is
#' `NULL`, in which case the infinity symbol is used on platforms that support it, otherwise
#' `"Inf"` is used.
#'
#' * `options("santoku.warn_character")` warns if you try to chop a character vector. Set to
#' `FALSE` to turn off this warning.
"_PACKAGE"

# The following block is used by usethis to automatically manage
Expand Down
13 changes: 12 additions & 1 deletion man/santoku-package.Rd

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

0 comments on commit d233bf1

Please sign in to comment.