diff --git a/R/Fdebug.r b/R/Fdebug.r index 3844635..47a71f3 100644 --- a/R/Fdebug.r +++ b/R/Fdebug.r @@ -37,6 +37,6 @@ Fdebug <- function(opt) { formals(deb)$txt <- opt formals(deb)$callingfun <- as.character(sys.call(-1)[1]) } - else deb <- function(x, txt, callingfun, file) {NULL} + else deb <- function(x, txt, callingfun, file=getOption('debug_file', '')) {NULL} deb }