Unknown error in prepare_* functions using the spread() function
This morning we received a report that some of the graphs are not working anymore.
Turns out that nine graphs were affected by this issue, all of which using the spread()
function internally. Here's the error message when plotting one of these graphs:
Error in get("as_data_frame.matrix", asNamespace("tibble"), mode = "function") :
object 'as_data_frame.matrix' of mode 'function' was not found
Calls: plot_webstats_tm ... NextMethod -> spread_.data.frame -> as_data_frame_matrix -> get
I came up with a hotfix that replaces spread()
with cast()
, but that's going backwards from the tidyr package to its predecessor, the reshape package.
Also, I didn't find a working fix for the Tor Messenger graph where cast()
works slightly different than spread()
with regard to missing data.
We'll need to find a better fix. Ideally, we'd find out why spread()
isn't working anymore, including why it stopped working in the first place.