diff --git a/R/stanMisc.r b/R/stanMisc.r index 6b5a80c..ee26ce2 100644 --- a/R/stanMisc.r +++ b/R/stanMisc.r @@ -179,6 +179,7 @@ stanCompile <- options(auto_write = FALSE) stanloc <- .Options$stancompiled if(! length(stanloc)) stop('options(stancompiled=) not defined') + if(! file.exists(stanloc)) stop('The directory defined in options(stancompiled=), \"', stanloc, '\" does not exist. Hint: see ?dir.create') cat('Compiling', length(mods), 'programs to', stanloc, '\n') for(m in mods) {