Browse code

bugfix: DAGParam did not report acyclic graphs correctly

- scalar comparison required

Martin Morgan authored on 19/12/2019 16:12:09
Showing 2 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 Package: Streamer
2 2
 Type: Package
3 3
 Title: Enabling stream processing of large files
4
-Version: 1.32.0
4
+Version: 1.32.1
5 5
 Author: Martin Morgan, Nishant Gopalakrishnan
6 6
 Maintainer: Martin Morgan <martin.morgan@roswellpark.org>
7 7
 Description: Large data files can be difficult to work with in R,
... ...
@@ -8,7 +8,7 @@ setMethod(DAGParam, "graphNEL",
8 8
     function(x, ...)
9 9
 {
10 10
     topology <- suppressWarnings(tsort(x))
11
-    if (nodes(x) > 1L && !length(topology))
11
+    if (length(nodes(x)) > 1L && !length(topology))
12 12
         stop("'x' is not a directed acyclic graph")
13 13
     .DAGParam$new(dag=x, ...)
14 14
 })