-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from r-lib/document-options
Document options
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#' sparsevctrs options | ||
#' | ||
#' These options can be set with `options()`. | ||
#' | ||
#' ## sparsevctrs.verbose_materialize | ||
#' | ||
#' This option is meant to be used as a diagnostic tool. Materialization of | ||
#' sparse vectors are done silently by default. This can make it hard to | ||
#' determine if your code is doing what you want. | ||
#' | ||
#' Setting `sparsevctrs.verbose_materialize` is a way to alert when | ||
#' materialization occurs. Note that only the first materialization is counted | ||
#' for the options below, as the materialized vector is cached. | ||
#' | ||
#' Setting `sparsevctrs.verbose_materialize = 1` or | ||
#' `sparsevctrs.verbose_materialize = TRUE` will result in a message being | ||
#' emitted each time a sparse vector is materialized. | ||
#' | ||
#' Setting `sparsevctrs.verbose_materialize = 2` will result in a warning being | ||
#' thrown each time a sparse vector is materialized. | ||
#' | ||
#' Setting `sparsevctrs.verbose_materialize = 3` will result in an error being | ||
#' thrown each time a sparse vector is materialized. | ||
#' | ||
#' @name sparsevctrs_options | ||
NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ reference: | |
- type-predicates | ||
- extractors | ||
- has_sparse_elements | ||
- sparsevctrs_options |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.