Displaying 1 result from an estimated 1 matches for "missingfield".
Did you mean:
missingfields
2006 Aug 29
1
PATCH: Add fields argument to installed.packages and available.packages
...Package"]
.saveRDS(res0, dest, compress = TRUE)
unlink(tmpf)
@@ -65,7 +70,14 @@
} # end of download vs cached
} # end of localcran vs online
if (length(res0)) {
- res0 <- cbind(res0, Repository = repos)
+ missingFields <- fields[!(fields %in% colnames(res0))]
+ if (length(missingFields)) {
+ toadd <- matrix(as.character(NA), nrow=nrow(res0),
+ ncol=length(missingFields),
+ dimnames=list(NULL, missingFields))
+...