]> git.donarmstrong.com Git - cran2deb.git/blobdiff - pkg/trunk/R/getrpkg.R
use NULL instead of NA. include git revision and date stamp in build log. generate...
[cran2deb.git] / pkg / trunk / R / getrpkg.R
index a0d6bc97b60cf8db84eb3accb2af395c645a9a05..90e266d477f71ad85bc495eaeaa6e4db5c6750c2 100644 (file)
@@ -22,7 +22,7 @@ prepare_pkg <- function(dir, pkgname) {
     # first a little trick; change pkgname if pkgname is contained in a bundle
     if (!(pkgname %in% rownames(available))) {
         bundle <- r_bundle_of(pkgname)
-        if (is.na(bundle)) {
+        if (is.null(bundle)) {
             fail('package',pkgname,'is unavailable')
         }
         pkgname <- bundle