Skip to content

Commit

Permalink
document input of sparse_double()
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed May 9, 2024
1 parent fa570af commit c61ac5a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions R/altrep.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
#'
#' @details
#'
#' `values` and `positions` are expected to be the same length, and are allowed
#' to both have zero length.
#'
#' Allowed values for `value` is double and integer values. integer values will
#' be coerced to doubles. Missing values such as `NA` and `NA_real_` are
#' allowed. Everything else is disallowed, This includes `Inf` and `NaN`.
#'
#' `positions` should be integers or integer-like doubles. Everything else is
#' not allowed. Positions should furthermore be positive (`0` not allowed),
#' unique, and in increasing order. Lastly they should all be smaller that
#' `length`.
#'
#' For developers:
#'
#' setting `options("sparsevctrs.verbose_materialize" = TRUE)` will print a
Expand Down
12 changes: 12 additions & 0 deletions man/sparse_double.Rd

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

0 comments on commit c61ac5a

Please sign in to comment.