I am looking for a function that will tell me, for a list of packages, which of them is up to date and which is not (I need it so to trace back an R crash).
Thanks,
Tal
I am looking for a function that will tell me, for a list of packages, which of them is up to date and which is not (I need it so to trace back an R crash).
Thanks,
Tal
Well, you could just update them with the update.packages()
function.
You could use installed.packages()
and available.packages()
to find any differences. Just merge the two results together on the name, and then look for version differences.
i <- installed.packages()
a <- available.packages()
ia <- merge(i, a, by="Package")[,c("Package", "Version.x", "Version.y")]
ia[as.character(ia$Version.x) != as.character(ia$Version.y),]
old.packages
will list the out of date ones. –
Acoustician updateme
is a really handy package that indicates if a new package version is available:
# install.packages("updateme")
library(updateme)
library(tidyverse) # check if there any new versions of tidyverse packages available
© 2022 - 2024 — McMap. All rights reserved.