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

var_labels migrate to formatable #152

Merged
merged 8 commits into from
Mar 9, 2022
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
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ Description: Standard Table, Listings, and Graphs (TLG) library used in
clinical trials.
License: file LICENSE
Depends:
R (>= 4.0.0)
R (>= 4.0.0)
Imports:
rtables,
tern,
assertthat,
checkmate,
dm,
dplyr,
magrittr,
methods,
rlang,
rtables,
tern,
tibble,
tidyr
Suggests:
Expand Down
4 changes: 3 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ importFrom(dplyr,select)
importFrom(magrittr,"%>%")
importFrom(methods,is)
importFrom(rlang,sym)
importFrom(rtables,var_labels)
importFrom(stats,setNames)
importFrom(tern,`var_labels<-`)
importFrom(tern,explicit_na)
importFrom(tern,sas_na)
importFrom(tern,var_labels)
importFrom(tern,with_label)
importFrom(tibble,tribble)
importFrom(tidyr,pivot_wider)
2 changes: 1 addition & 1 deletion R/standard_data_preprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ filter_adcm_anl01fl <- function(adam_db) {
}

#' Creating Necessary Columns for `aet01`
#'
#' @importFrom tern with_label
#' @inheritParams gen_args
#'
mutate_for_aet01 <- function(adam_db) {
Expand Down
5 changes: 3 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ globalVariables(c(
#' @param vars variable names in data frame `df`
#'
#' @importFrom assertthat assert_that
#' @importFrom rtables var_labels
#' @importFrom tern var_labels
#' @export
var_labels_for <- function(df, vars) {
assert_that(all(vars %in% names(df)))
Expand Down Expand Up @@ -177,6 +177,7 @@ reorder_levels_params <- function(df, paramcd_levels) {
#'
#' @importFrom dplyr select
#' @importFrom tidyr pivot_wider
#' @importFrom tern `var_labels<-`
#'
#' @return (`data.frame`)
#' @export
Expand Down Expand Up @@ -278,7 +279,7 @@ get_db_data <- function(db, ...) { # TODO: revisit


#' Retrieve Synthetic Test Data Used For Examples
#'
#' @importFrom tern with_label
#' @export
syn_test_data <- function() {
sd <- scda::synthetic_cdisc_data("rcd_2021_03_22")
Expand Down
1 change: 0 additions & 1 deletion staged_dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
current_repo:
repo: insightsengineering/chevron
host: https://github.com
Expand Down