Skip to content

Commit

Permalink
export function (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Burkoff authored Jun 30, 2022
1 parent 6893643 commit e80ea2e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export(bracket_expr)
export(call_concatenate)
export(clean_description)
export(color_lab_values)
export(column_annotation_label)
export(cs_to_des_filter)
export(cs_to_des_select)
export(cs_to_filter_spec)
Expand Down
10 changes: 5 additions & 5 deletions R/labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
#'
#' @examples
#' data <- mtcars
#' teal.modules.clinical:::column_annotation_label(data, "cyl")
#' column_annotation_label(data, "cyl")
#' attr(data[["cyl"]], "label") <- "Cylinder"
#' teal.modules.clinical:::column_annotation_label(data, "cyl")
#' teal.modules.clinical:::column_annotation_label(data, "cyl", omit_raw_name = TRUE)
#' column_annotation_label(data, "cyl")
#' column_annotation_label(data, "cyl", omit_raw_name = TRUE)
#' \dontrun{
#' ANL <- scda::synthetic_cdisc_data("latest")$adsl
#' teal.modules.clinical:::column_annotation_label(ANL, "ACTARM")
#' column_annotation_label(ANL, "ACTARM")
#' }
#' @keywords internal
#' @export
column_annotation_label <- function(dataset, column, omit_raw_name = FALSE) {
checkmate::assert_data_frame(dataset)
checkmate::assert_string(column)
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ reference:
- call_concatenate
- clean_description
- color_lab_values
- column_annotation_label
- cs_to_des_filter
- cs_to_des_select
- cs_to_filter_spec
Expand Down
9 changes: 4 additions & 5 deletions man/column_annotation_label.Rd

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

0 comments on commit e80ea2e

Please sign in to comment.