install.packages() returns a warning if a package cannot be installed (for instance, if it is unavailable); for example:
install.packages()
install.packages(\"nota
Expanding on the quick comment:
R> AP <- available.packages() R> "notapackage" %in% AP[,1] # expected to yield FALSE [1] FALSE R> "digest" %in% AP[,1] # whereas this should be TRUE [1] TRUE R>