Skip to content

Instantly share code, notes, and snippets.

@ismayc
Last active January 16, 2019 00:08
Show Gist options
  • Save ismayc/a292ea5aaced9ded3b62903e4dfa12b8 to your computer and use it in GitHub Desktop.
Save ismayc/a292ea5aaced9ded3b62903e4dfa12b8 to your computer and use it in GitHub Desktop.
pkg_df <- devtools::session_info() %>%
purrr::pluck("packages")
pkg_df %>%
purrr::walk2(.x = .$package,
.y = .$loadedversion,
.f = remotes::install_version,
dependencies = NA,
upgrade = "ask")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment