Error in !strict : invalid argument type
5 sql_env(x, variant, con, window = window)
4 FUN(X[[1L]], ...)
3 lapply(expr, function(x) {
if (is.atomic(x))
return(escape(x, con = con))
env <- sql_env(x, variant, con, window = window)
eval(x, envir = env)
})
2 translate_sql_q(parse(text = paste(lapply(e, function(x) {
if (str_detect(x, "^\\.")) {
eval(parse(text = str_match(x, "\\.(.+)")[2]))
}
else x
}), collapse = " "))) at select_events.R#32
1 select_events(db, tab = "Referral", columns = c("patid", "eventdate",
"medcode"), where = "medcode %in% .(a$medcode) & eventdate < '2000-01-01'")