In R: How can I find out if my packages are updated?

I am looking for a function that will tell me, for a list of packages, which one is relevant and which is not (I need it to track R-crash).

Thank,

Tal

+3
source share
1 answer

Well, you can just update them using the function update.packages().

You can use installed.packages()and available.packages()to find any differences. Just combine the two results with the name, and then find the differences in version.

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),]
+9
source

Source: https://habr.com/ru/post/1739523/


All Articles