diff --git a/R/data_freeze.R b/R/data_freeze.R index 54b8d02..51a6fff 100644 --- a/R/data_freeze.R +++ b/R/data_freeze.R @@ -77,7 +77,7 @@ data_freeze <- function(box.dir = file.path("~", "box"), ### # use REDCap API to download data - for (index.epoch in unique(tokens.list$epoch)){ + for (index.epoch in unique(tokens.list$epoch)) { epoch <- paste0("epoch_", index.epoch) list.names <- MAPfreeze.list[[epoch]][["shortname"]] diff --git a/man/data_freeze.Rd b/man/data_freeze.Rd index 3e67fba..a184897 100644 --- a/man/data_freeze.Rd +++ b/man/data_freeze.Rd @@ -29,5 +29,7 @@ A comprehensive list object containing all the raw data necessary to perform a d Freeze data by downloading it from REDCap. Static data sets are also added to the list object. The API tokens must be unlocked from a secure, encrypted vault. } \examples{ +\dontrun{ MAPfreeze_interim.list <- data_freeze(quarterly.download = FALSE, save = TRUE, return = TRUE) } +} diff --git a/man/format_p.Rd b/man/format_p.Rd index 2e9927b..ac19465 100644 --- a/man/format_p.Rd +++ b/man/format_p.Rd @@ -18,5 +18,7 @@ A \code{formattable} object containing the formatted vector of p-values. Format a vector of p-values to be colored red if less than the specified alpha. } \examples{ +\dontrun{ formattable::formattable(summary.all.df, list(`p-Value` = formatP, `Total p-Value` = formatP)) } +} diff --git a/man/missing_to_na.Rd b/man/missing_to_na.Rd index f5cc73d..d5a66d2 100644 --- a/man/missing_to_na.Rd +++ b/man/missing_to_na.Rd @@ -40,9 +40,10 @@ test.df \%>\% mutate_at( ~ missing_to_na(., equal.val = c(2, 3, "E"), mod.val = -2, restrict.sign = TRUE) ) +\dontrun{ epoch1.main.df \%>\% mutate_at( grep("^ecogself\\\\_(mem|lang|vis|plan|org|attn)\\\\d{2}$", names(.)), ~ missing_to_na(., equal.val = 0) ) - +} } diff --git a/man/print_excluded_participants.Rd b/man/print_excluded_participants.Rd index f2416f6..e1dd314 100644 --- a/man/print_excluded_participants.Rd +++ b/man/print_excluded_participants.Rd @@ -16,5 +16,7 @@ A sentence stating that no participants were excluded in the specified step or a Use in statistical reports to print MAP IDs excluded from a specific exclusion step. } \examples{ +\dontrun{ excl_map_id(step = 2) } +}