Skip to content
Snippets Groups Projects
Commit a01fce2a authored by Thomas  OBADIA's avatar Thomas OBADIA :speech_balloon:
Browse files

Add cleanup sections where it was missing

parent 00bff6e8
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,15 @@ write.table(dat_inventory_raw, ...@@ -160,6 +160,15 @@ write.table(dat_inventory_raw,
######################################################################
### CLEANUP
######################################################################
rm(INVENTORY_OUT_01_FILENAME)
###################################################################### ######################################################################
### UPDATE DATA_EXTRACT_IS_RECENT_INV ### UPDATE DATA_EXTRACT_IS_RECENT_INV
###################################################################### ######################################################################
......
...@@ -132,6 +132,15 @@ write.table(dat_observational_raw, ...@@ -132,6 +132,15 @@ write.table(dat_observational_raw,
######################################################################
### CLEANUP
######################################################################
rm(OBSERVATIONAL_OUT_01_FILENAME)
###################################################################### ######################################################################
### UPDATE DATA_EXTRACT_IS_RECENT_OBS ### UPDATE DATA_EXTRACT_IS_RECENT_OBS
###################################################################### ######################################################################
......
...@@ -84,6 +84,15 @@ write.table(dat_observational_curated, ...@@ -84,6 +84,15 @@ write.table(dat_observational_curated,
######################################################################
### CLEANUP
######################################################################
rm(OBSERVATIONAL_OUT_02_FILENAME)
###################################################################### ######################################################################
### UPDATE DATA_EXTRACT_IS_RECENT_OBS ### UPDATE DATA_EXTRACT_IS_RECENT_OBS
###################################################################### ######################################################################
......
...@@ -79,4 +79,23 @@ tmp = dat_observational_curated %>% ...@@ -79,4 +79,23 @@ tmp = dat_observational_curated %>%
nested_hhid = "\\d{2}", nested_hhid = "\\d{2}",
"-", "-",
nested_subjid = "\\d{2}"), too_few = "debug") nested_subjid = "\\d{2}"), too_few = "debug")
######################################################################
### CLEANUP
######################################################################
rm()
######################################################################
### UPDATE DATA_EXTRACT_IS_RECENT_OBS
######################################################################
DATA_EXTRACT_IS_RECENT_OBS <- as.logical(difftime(time1 = Sys.Date(),
time2 = as.Date(ifelse(exists("DATA_EXTRACT_TS_OBS"), DATA_EXTRACT_TS_OBS, DATA_EXTRACT_TS_DEFAULT)),
units = "days") <= DATA_EXTRACT_EXPIRY_TIME_D)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment