Skip to content

Commit

Permalink
Fix debug=TRUE
Browse files Browse the repository at this point in the history
debug=TRUE lets you run MultiBUGS, but then keep the session open for debugging purposes etc. This was broken, as reported in Issue #4
  • Loading branch information
rjbgoudie committed Oct 12, 2018
1 parent 6e6aa0a commit aff8f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/bugs.run.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ bugs.run <- function(n.burnin,
useWINE = useWINE,
newWINE = newWINE,
WINEPATH = WINEPATH),
"\" /",
"\"",
sep = "")
if (!debug){
bugsCall <- paste(bugsCall, "HEADLESS", sep = "")
bugsCall <- paste(bugsCall, " /HEADLESS", sep = "")
}
if (useWINE){
bugsCall <- paste(WINE, bugsCall)
Expand Down

0 comments on commit aff8f5a

Please sign in to comment.