# this script enables to easily remove log entries in incremental mode.
# if we want to rerun/overwrite previous data
library(magrittr)
logFolder <-
"D:\\temp\\outputFolder\\packageMode"
diagnosticsFileName <- "CreatedDiagnostics.csv"
listFiles <-
list.files(
path = logFolder,
pattern = diagnosticsFileName,
full.names = TRUE,
recursive = TRUE
)
# "getCohortCounts", "runInclusionStatistics", "runIncludedSourceConcepts",
# "runBreakdownIndexEvents", "runOrphanConcepts",
# "runVisitContext", "runIncidenceRate", "runCohortOverlap","runCohortAsFeatures",
# "runTemporalCohortCharacterization"
# tasksToRemove <- c("runTimeSeries")
for (i in (1:length(listFiles))) {
readr::read_csv(
file = listFiles[[i]],
col_types = readr::cols(),
guess_max = min(1e7)
) %>%
dplyr::filter(!.data$task %in% tasksToRemove) %>%
readr::write_excel_csv(file = listFiles[[i]])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.