]> git.donarmstrong.com Git - cran2deb.git/blobdiff - pkg/trunk/R/getrpkg.R
style: use la_foo_bar instead of la.foo.bar.
[cran2deb.git] / pkg / trunk / R / getrpkg.R
index 45fbe6d3c8894eafac1b6e1c069c59f3bcc30746..dc3aa38012e3ea005833ec315f22e085990ec516 100644 (file)
@@ -12,7 +12,7 @@ cleanup <- function(dir) {
     invisible()
 }
 
-prepare.pkg <- function(dir, pkgname) {
+prepare_pkg <- function(dir, pkgname) {
     # download and extract an R package named pkgname
     # OR the bundle containing pkgname
 
@@ -21,7 +21,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)
+        bundle <- r_bundle_of(pkgname)
         if (is.na(bundle)) {
             stop(paste('package',pkgname,'is unavailable'))
         }