Skip to content

Commit

Permalink
remove fxns not used from zzz.r
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Aug 13, 2020
1 parent 8e4a826 commit f157085
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,33 +1,4 @@
mssg <- function(v, ...) if (v) message(...)

txdbc <- function(x) Filter(Negate(is.null), x)

cl <- function(x, y){
if (is.null(y)) {
""
} else {
paste0(x, y)
}
}

mkhome <- function(x) {
dir.create(x, showWarnings = FALSE, recursive = FALSE)
}

# db_installed(x = 'psql')
db_installed <- function(x) {
tmp <- Sys.which(x)
if (any(tmp == "")) {
nf <- paste0(names(tmp)[tmp == ""], collapse = ", ")
stop(
sprintf(
"\n%s not found on your computer\nInstall the missing tool(s) and try again",
nf))
}
}

sm <- function(x) suppressMessages(x)

assert <- function(x, y) {
if (!is.null(x)) {
if (!inherits(x, y)) {
Expand Down

0 comments on commit f157085

Please sign in to comment.