]> git.donarmstrong.com Git - cran2deb.git/blobdiff - branch/patch/R/util.R
Merged branch/patch into trunk
[cran2deb.git] / branch / patch / R / util.R
diff --git a/branch/patch/R/util.R b/branch/patch/R/util.R
deleted file mode 100644 (file)
index e10951e..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-iterate <- function(xs,z,fun) {
-    y <- z
-    for (x in xs)
-        y <- fun(y,x)
-    return(y)
-}
-
-chomp <- function(x) {
-    # remove leading and trailing spaces
-    return(sub('^[[:space:]]+','',sub('[[:space:]]+$','',x)))
-}
-
-host_arch <- function() {
-    # return the host system architecture
-    system('dpkg-architecture -qDEB_HOST_ARCH',intern=T)
-}
-
-err <- function(...) {
-    error(...)
-    exit()
-}
-
-exit <- function() {
-    q(save='no')
-}