Skip to content

Commit

Permalink
correct previous commit where check on activityDiary existence was in…
Browse files Browse the repository at this point in the history
…troduce
  • Loading branch information
vincentvanhees committed Jan 17, 2025
1 parent 9573752 commit dd7e819
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/g.part2.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ g.part2 = function(datadir = c(), metadatadir = c(), f0 = c(), f1 = c(),
use_qwindow_as_diary = FALSE
}
tmp_activityDiary_file = paste0(metadatadir, "/activityDiary.RData")
if (file.exists(tmp_activityDiary_file) ||
file.info(params_247[["qwindow"]])$ctime >= file.info(tmp_activityDiary_file)$ctime) {

if (!file.exists(tmp_activityDiary_file) || (file.exists(tmp_activityDiary_file) &&
file.info(params_247[["qwindow"]])$ctime >= file.info(tmp_activityDiary_file)$ctime)) {
if (verbose == TRUE) cat("\nConverting activity diary...")
# This will be an object with numeric qwindow values for all individuals and days
params_247[["qwindow"]] = g.conv.actlog(params_247[["qwindow"]],
Expand Down

0 comments on commit dd7e819

Please sign in to comment.