Closed theresekon closed 4 years ago
Ahhh. This could be something called a "namespace" issue. When you load two or more packages that have a function with the same name, then R can get confused about which version to use. This issue happens a lot with filter
, because several packages have a function with that name.
One way to resolve this is to use the full package::function()
notation, because that tells R which package to look in to get the function to use. Try changing filter
to dplyr::filter
and see if that helps here.
Okay, thank you I will try that. I also realized that the whole error message wasn't appearing on my screen. The whole thing actually reads
Error in county_events_2015 %>% filter(str_to_lower(state) %in% as.character(state.fips$polyname)) %>% : could not find function "%>%" Error in ggplot(ex, aes(x = begin_date, y = n, color = state)) : could not find function "ggplot"
Oh, for that one, try adding:
library(ggplot2)
somewhere in the vignette before this point.
When I try to run the following code chunk in the details.Rmd file:
I get an error message reading:
Error in county_events_2015 %>% filter(str_to_lower(state) %in%