Diff of /R/jags.R [9885fe] .. [beeb10]  Maximize  Restore

  Switch to side-by-side view

--- a/R/jags.R
+++ b/R/jags.R
@@ -66,7 +66,7 @@
     }
     else if (is.list(data)) {
         v <- names(data)
-        if (is.null(v)) {
+        if (is.null(v) && length(v) != 0) {
             stop("data must be a named list")
         }
         if (any(nchar(v)==0)) {

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks