Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

479 improve documentation #484

Merged
merged 6 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions R/teal_slice.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@
#' @return A `teal.slice` object. Depending on whether `varname` or `expr` was specified, the resulting
#' `teal_slice` also receives class `teal_slice_var` or `teal_slice_expr`, respectively.
#'
#' @note When `teal_slice` is printed and contains a `POSIX*t` class in `selected` or `choices` fields, then those
#' fields are converted to `UTC` timezone, for enhanced and unified storage and restoring with `teal::slices_store()`
#' and `teal::slices_restore()`.
#' @note Date time objects of `POSIX*t` classes are printed as strings after converting to UTC timezone.
#'
#' @examples
#' x1 <- teal_slice(
Expand Down
15 changes: 10 additions & 5 deletions R/teal_slices.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#' @param i (`character` or `numeric` or `logical`) indicating which elements to extract
#' @param recursive (`logical(1)`) flag specifying whether to also convert to list the elements of this `teal_slices`
#'
#' @note When `teal_slices` are printed and any of `teal_slice` elements contain a `POSIX*t` class in `selected` or
#' `choices` fields, then those fields are converted to `UTC` timezone, for enhanced and unified storage and restoring
#' with `teal::slices_store()` and `teal::slices_restore()`.
#' @note
#' The `teal` package contains robust utilities for saving and loading `teal_slices` in `JSON` format.
m7pr marked this conversation as resolved.
Show resolved Hide resolved
#' See [`teal::slices_store`] and [`teal::slices_restore`].
#'
#' @return
#' `teal_slices`, which is an unnamed list of `teal_slice` objects.
Expand Down Expand Up @@ -255,7 +255,12 @@ setdiff_teal_slices <- function(x, y) {
}


#' @rdname teal_slices
#' Convert nested list to `teal_slices`.
#'
#' Helper function for converting old style filter specification (nested list) to the new one (`teal_slices`).
#'
#' This function is used internally during deprecation of the old filter panel.
#'
#' @export
#' @keywords internal
#'
Expand Down Expand Up @@ -343,7 +348,7 @@ list_to_teal_slices <- function(x) { # nolint
#'
#' This function is used internally in `c.teal_slices` to manage `teal_slices` attributes.
#'
#' @param `list`, either of atomic vectors or of `named list`s
#' @param x `list`, either of atomic vectors or of `named list`s
#' @return
#' Either an atomic vector of length 1 or a (potentially nested) list.
#'
Expand Down
6 changes: 3 additions & 3 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cloneable
Forkers
funder
Hoffmann
MultiAssayExperiment
UI
cloneable
funder
programmatically
repo
reproducibility
subclasses
subtype
UI
2 changes: 1 addition & 1 deletion man/coalesce_r.Rd

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

15 changes: 15 additions & 0 deletions man/list_to_teal_slices.Rd

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

4 changes: 1 addition & 3 deletions man/teal_slice.Rd

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

8 changes: 2 additions & 6 deletions man/teal_slices.Rd

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