This will check to see if all tidyverse packages (and optionally, their dependencies) are up-to-date, and will install after an interactive confirmation.
tidyverse_update(recursive = FALSE, repos = getOption("repos"))
if (FALSE) { # \dontrun{
tidyverse_update()
} # }