Skip to content

Commit

Permalink
- fix rcmd check
Browse files Browse the repository at this point in the history
- remove TealData occurrences in docs
  • Loading branch information
gogonzo committed Dec 7, 2023
1 parent 83428cf commit f58359a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 16 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Imports:
tidyselect
Suggests:
knitr (>= 1.42),
rmarkdown (>= 2.19),
teal.code (>= 0.4.0),
testthat (>= 3.1.5)
VignetteBuilder:
Expand All @@ -47,7 +48,7 @@ RdMacros:
lifecycle
Config/Needs/verdepcheck: tidyverse/magrittr, mllg/checkmate,
tidyverse/dplyr, r-lib/lifecycle, daroczig/logger, r-lib/rlang,
rstudio/shiny, daattali/shinyjs, rstudio/shinyvalidate,
rstudio/rmarkdown, rstudio/shiny, daattali/shinyjs, rstudio/shinyvalidate,
insightsengineering/teal.data, insightsengineering/teal.logger,
insightsengineering/teal.widgets,
tidyverse/tidyr, r-lib/tidyselect, yihui/knitr, rstudio/shinytest,
Expand Down
10 changes: 4 additions & 6 deletions R/choices_labeled.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ choices_labeled <- function(choices, labels, subset = NULL, types = NULL) {
#'
#' @description `r lifecycle::badge("stable")`
#'
#' @param data (`data.frame`, `character`, `TealDataset`, `TealDatasetConnector`)
#' @param data (`data.frame`, `character`)
#' If `data.frame`, then data to extract labels from
#' If `character`, then name of the dataset to extract data from once available
#' If `TealDataset` or `TealDatasetConnector`, then raw data to extract labels from.
#' @param subset (`character` or `function`)
#' If `character`, then a vector of column names.
#' If `function`, then this function is used to determine the possible columns (e.g. all factor columns).
Expand Down Expand Up @@ -235,10 +234,9 @@ variable_choices.data.frame <- function(data, subset = NULL, fill = TRUE, key =
#'
#' @description `r lifecycle::badge("stable")`
#'
#' @param data (`data.frame`, `character`, `TealDataset`, `TealDatasetConnector`)
#' If `data.frame`, then data to extract labels from
#' If `character`, then name of the dataset to extract data from once available
#' If `TealDataset` or `TealDatasetConnector`, then raw data to extract labels from.
#' @param data (`data.frame`, `character`)
#' If `data.frame`, then data to extract labels from.
#' If `character`, then name of the dataset to extract data from once available.
#' @param var_choices (`character` or `NULL`) vector with choices column names
#' @param var_label (`character`) vector with labels column names
#' @param subset (`character` or `function`)
Expand Down
2 changes: 1 addition & 1 deletion R/resolve.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ resolve.default <- function(x, datasets, keys) {
#'
#' @param x (`function`) Function that is applied on dataset.
#' It must take only a single argument "data" and return character vector with columns / values.
#' @param ds (`data.frame`) `TealDataset` on which the function is applied to.
#' @param ds (`data.frame`) dataset on which the function is applied to.
#' @param is_value_choices (`logical`) Determines which check of the returned value will be applied.
#'
#' @return Character vector - result of calling function `x` on dataset `ds`.
Expand Down
2 changes: 1 addition & 1 deletion man/resolve_delayed_expr.Rd

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

7 changes: 3 additions & 4 deletions man/value_choices.Rd

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

5 changes: 2 additions & 3 deletions man/variable_choices.Rd

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

0 comments on commit f58359a

Please sign in to comment.