Closed
Description
See this example:
epi_slide(jhu_csse_county_level_subset, function(x) print(x))
Error in .f(.x, ...) : unused argument (list())
The error message isn't that informative, and seems like it might be fairly commonly encountered. (I have trouble remembering the g
arg despite discussing it for a while.)
We can check that f
takes enough arguments beforehand. I believe I have something along these lines for a different function in #102. (See fn_max_n_args
definition and use.)