Unable to publish markdown. error when rending.

I see the following error when I try to render my markdown.

rmarkdown::render_site()

Rendering: ./bikeshare_chicago.Rmd
  |.......                                                                                                                    |   6% [Volume per hour]                                                  Error in `alldf1 %>% count(started_hour, sort = TRUE, name = "count")`:
! could not find function "%>%"
Backtrace:
  1. rmarkdown::render_site()
  2. generator$render(...)
  3. base::sapply(...)
  4. base::lapply(X = X, FUN = FUN, ...)
  5. rmarkdown (local) FUN(X[[i]], ...)
     ...
 22. base::withRestarts(...)
 23. base (local) withRestartList(expr, restarts)
 24. base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
 25. base (local) docall(restart$handler, restartArgs)
 27. evaluate (local) fun(base::quote(`<smplErrr>`))

%>% is a pipe command from the {magrittr} package. You need to load it or the {tidyverse } package.

Try

library(tidyverse)

or

library(magrittr)

in your code.