Skip to content

Commit

Permalink
fix warnings (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Burkoff, Nikolas {PXIW~Basel} authored and GitHub Enterprise committed Mar 10, 2021
1 parent 80dbf10 commit b2b57c7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ importFrom(rlang,":=")
importFrom(rlang,.data)
importFrom(stats,dpois)
importFrom(stats,qpois)
importFrom(stats,rbinom)
importFrom(stats,rchisq)
importFrom(stats,reorder)
importFrom(stats,rexp)
Expand Down
8 changes: 4 additions & 4 deletions R/radcm.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ radcm <- function(ADSL, # nolint

ADCM <- ADCM %>% # nolint
dplyr::mutate(
ATC1CD = ATC1,
ATC2CD = ATC2,
ATC3CD = ATC3,
ATC4CD = ATC4
ATC1CD = .data$ATC1,
ATC2CD = .data$ATC2,
ATC3CD = .data$ATC3,
ATC4CD = .data$ATC4
)

# apply metadata
Expand Down
3 changes: 2 additions & 1 deletion R/raddv.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#' @importFrom tibble tribble
#' @importFrom rlang .data
#' @importFrom utils read.table
#' @importFrom stats rbinom
#'
#' @export
#'
Expand Down Expand Up @@ -127,7 +128,7 @@ raddv <- function(ADSL, # nolint
arrange(.data$STUDYID, .data$USUBJID, .data$ASTDT, .data$DVTERM, .data$DVSEQ)

ADDV <- ADDV %>% # nolint
mutate(AEPRELFL = ifelse(DVEPRELI == "Y", DVEPRELI, ""))
mutate(AEPRELFL = ifelse(.data$DVEPRELI == "Y", .data$DVEPRELI, ""))

if (length(na_vars) > 0 && na_percentage > 0 && na_percentage <= 1) {
ADDV <- mutate_na(ds = ADDV, na_vars = na_vars, na_percentage = na_percentage) # nolint
Expand Down
1 change: 1 addition & 0 deletions R/radsaftte.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#' given subject-level analysis dataset.
#'
#' @inheritParams radaette
#' @param ... Additional argument to be passed to \code{radaette}
#'
#' @export
#'
Expand Down
2 changes: 1 addition & 1 deletion R/radsub.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ h_anthropometrics_by_sex <- function(df,
)
) %>%
mutate(
BMI = WEIGHT / ((HEIGHT)^2)
BMI = .data$WEIGHT / ((.data$HEIGHT)^2)
)

return(df_with_measurements)
Expand Down
2 changes: 2 additions & 0 deletions man/radsaftte.Rd

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

0 comments on commit b2b57c7

Please sign in to comment.