You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main function dosearch of the dosearch package has 7 examples that are not wrapped in \dontrun, but if understand the output correctly, autotest thinks that there is only 1 example. This is what I get from examples_to_yaml
#> [1] "package: dosearch" #> [2] "functions:" #> [3] " - dosearch:" #> [4] " - preprocess:" #> [5] " - 'data1 <- \"P(x,y,z)\"'" #> [6] " - 'query1 <- \"P(y|do(x))\"'" #> [7] " - 'graph1 <- \" x -> y z -> x z -> y \"'" #> [8] " - 'data2 <- \"P(x,y,z)\"'" #> [9] " - 'query2 <- \"P(y|do(x))\"'" #> [10] " - 'graph2 <- \" x -> z z -> y x <-> y \"'" #> [11] " - 'data <- \" p(x,z,y|s) p(y,z|t,do(x)) \"'" #> [12] " - 'query <- \"p(y|do(x))\"'" #> [13] " - 'graph <- \" x -> z z -> y x -> s t -> z x <-> y \"'" #> [14] " - 'data <- \" p(x*,y*,r_x,r_y) p(y) \"'" #> [15] " - 'graph <- \" x -> y y -> r_y r_y -> r_x \"'" #> [16] " - 'md <- \"r_x : x, r_y : y\"'" #> [17] " - 'if (requireNamespace(\"igraph\", quietly = TRUE)) { g_igraph <- igraph::graph.formula( x -+ z, z -+ y, x -+ y, y -+ x, simplify = FALSE ); g_igraph <- igraph::set.edge.attribute(g_igraph, \"description\", 3:4, \"U\"); dosearch(data2, query2, g_igraph) }'"#> [18] " - 'if (requireNamespace(\"dagitty\", quietly = TRUE)) { g_dagitty <- dagitty::dagitty(\"dag{x -> z -> y; x <-> y}\"); dosearch(data2, query2, g_dagitty) }'" #> [19] " - parameters:" #> [20] " - data: data2" #> [21] " - query: query2" #> [22] " - graph: g_igraph" #> [23] " - control: list()" #> [24] " - classes:" #> [25] " - control: function" #> [26] " - control: function" #> [27] " - class:" #> [28] " - data: character" #> [29] " - query: character" #> [30] " - graph: dagitty" #> [31] " - dosearch:" #> [32] " - preprocess:" #> [33] " - 'data1 <- \"P(x,y,z)\"'" #> [34] " - 'query1 <- \"P(y|do(x))\"'" #> [35] " - 'graph1 <- \" x -> y z -> x z -> y \"'" #> [36] " - 'data2 <- \"P(x,y,z)\"'" #> [37] " - 'query2 <- \"P(y|do(x))\"'" #> [38] " - 'graph2 <- \" x -> z z -> y x <-> y \"'" #> [39] " - 'data <- \" p(x,z,y|s) p(y,z|t,do(x)) \"'" #> [40] " - 'query <- \"p(y|do(x))\"'" #> [41] " - 'graph <- \" x -> z z -> y x -> s t -> z x <-> y \"'" #> [42] " - 'data <- \" p(x*,y*,r_x,r_y) p(y) \"'" #> [43] " - 'graph <- \" x -> y y -> r_y r_y -> r_x \"'" #> [44] " - 'md <- \"r_x : x, r_y : y\"'" #> [45] " - 'if (requireNamespace(\"igraph\", quietly = TRUE)) { g_igraph <- igraph::graph.formula( x -+ z, z -+ y, x -+ y, y -+ x, simplify = FALSE ); g_igraph <- igraph::set.edge.attribute(g_igraph, \"description\", 3:4, \"U\"); dosearch(data2, query2, g_igraph) }'"#> [46] " - 'if (requireNamespace(\"dagitty\", quietly = TRUE)) { g_dagitty <- dagitty::dagitty(\"dag{x -> z -> y; x <-> y}\"); dosearch(data2, query2, g_dagitty) }'" #> [47] " - parameters:" #> [48] " - data: data2" #> [49] " - query: query2" #> [50] " - graph: g_dagitty" #> [51] " - control: list()" #> [52] " - classes:" #> [53] " - control: function" #> [54] " - control: function" #> [55] " - class:" #> [56] " - data: character" #> [57] " - query: character" #> [58] " - graph: dagitty"
It seems that for some reason the examples are combined together and the preprocess-elements contain setup variables from different examples. For example, the first example in the package documentation only uses data1, query1 and graph1.
The main function
dosearch
of thedosearch
package has 7 examples that are not wrapped in \dontrun, but if understand the output correctly,autotest
thinks that there is only 1 example. This is what I get fromexamples_to_yaml
It seems that for some reason the examples are combined together and the
preprocess
-elements contain setup variables from different examples. For example, the first example in the package documentation only usesdata1
,query1
andgraph1
.Session info
The text was updated successfully, but these errors were encountered: