There are so many R packages, can they all be trusted? or are they well maintained? To answer this question, we just need to take a look of their archive histories. If a package has many versions, we can take that as the authors spent a lot of time to make their packages perfect, these of kinds of packages can be taken as well maintained.
From the above pie chart, we can see that half of the packages have 4 or more versions, and 7% of them even have more than 20 version, suggesting, at least, half of R packages were well maintained.
R code for above pie chart.
Packages Maintenance
12345678910111213141516171819202122232425262728
# Extract the date of the first version, last verstion and # the total number of versions for each package;pkg.update <- data.frame(pkg.name = names(PKG))for(i in 1:nrow(pkg.update)){ pkg <- pkg.update$pkg.name[i] pkg.des <- PKG[[pkg]]if("History"%in% names(pkg.des)){ pkg.update$Date.1[i]<- as.character(min(pkg.des$History$Date)) pkg.update$Num[i]<- nrow(pkg.des$History)+1}else { pkg.update$Date.1[i]<- pkg.des$Description$V2[which(pkg.des$Description$V1 =="Published:")] pkg.update$Num[i]<-1} pkg.update$Date.2[i]<- pkg.des$Description$V2[which(pkg.des$Description$V1 =="Published:")]}# Aggregate package maintenance;dat.1 <- with(pkg.update, aggregate(list(pkg.num = pkg.name), list(Num = Num), length))dat.1$pkg.num[21]<- sum(dat.1$pkg.num[-(1:20)])dat.1$Num <- as.character(dat.1$Num)dat.1$Num[21]<-"20+"dat <- dat.1[1:21,]# Display the pie chart in GoogleVis;Pie <- gvisPieChart(dat)plot(Pie)
There are 49 packages have more than 50 versions, take a look which of them you have used or heard.
21.3% of the packages have only one version which suggest that these packages need more mainenance if they are not perfect, or perhaps they were just uploaded to CRAN. For the packages having no more than 3versions, most of them (71.6%) were uploaded in recent two years, and only 15 packages were updated before 2007.