recordFetch <- quote({
# Writing to a variable forces evaluation so that .dittodb_env$curr_file_path
# is always available
filepath <- .dittodb_env$curr_file_path
if (dittodb_debug_level(1)) {
message("Writing to ", filepath)
}
out <- redact_columns(ans, columns = get_redactor())
dput(out, filepath, control = c("all", "hexNumeric"))
})
In capture-requests.R