Closed DocEd closed 5 years ago
█
%>%
(...) R/extract_timevarying.R:55:2_fseq
(_lhs
)), env, env))_fseq
(_lhs
)), env, env)_fseq
(_lhs
)), env, env)_fseq
(_lhs
)_function_list
)%>%
(...) R/extract_timevarying.R:63:6_fseq
(_lhs
)), env, env))_fseq
(_lhs
)), env, env)_fseq
(_lhs
)), env, env)_fseq
(_lhs
)_function_list
)%in%
(...)Taceback stack above. I've added a file at data-raw/working.R with a demo file to try and reproduce the error. @klapaukh would you mind taking a look and seeing if you could point out an obvious flaw?
Fixed. We needed a !!
when a data frame was being passed into map
Problem occurs when trying to run
extract_timevarying
. Error message as below:As below:
Error: Cannot embed a data frame in a SQL query.
If you are seeing this error in code that used to work, the most likely cause is a change dbplyr 1.4.0. Previously
df$x
ordf[[y]]
implied thatdf
was a local variable, but now you must make that explict with!!
orlocal()
, e.g.,!!df$x
orlocal(df[["y"])) Call
rlang::last_error()` to see a backtraceStruggling to find the root of the problem as this all works when I take things out of the function. So presumably this is an environment/scoping issue.