This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new bce00aa  Fix R build crash in CI (#9965)
bce00aa is described below

commit bce00aaca0cb8e69343b5a09da00ef671cad8815
Author: jeremiedb <jeremi...@users.noreply.github.com>
AuthorDate: Fri Mar 2 16:22:40 2018 -0500

    Fix R build crash in CI (#9965)
    
    * fix viz.graph R
    
    * fix viz.graph R
---
 R-package/DESCRIPTION   | 2 +-
 R-package/R/viz.graph.R | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/R-package/DESCRIPTION b/R-package/DESCRIPTION
index b22751a..fdda200 100644
--- a/R-package/DESCRIPTION
+++ b/R-package/DESCRIPTION
@@ -15,7 +15,7 @@ BugReports: https://github.com/dmlc/mxnet/issues
 Imports:
     methods,
     Rcpp (>= 0.12.1),
-    DiagrammeR (>= 0.9.0),
+    DiagrammeR (>= 1.0.0),
     visNetwork (>= 1.0.3),
     data.table,
     jsonlite,
diff --git a/R-package/R/viz.graph.R b/R-package/R/viz.graph.R
index 49f978a..196f1da 100644
--- a/R-package/R/viz.graph.R
+++ b/R-package/R/viz.graph.R
@@ -8,7 +8,6 @@
 #' @importFrom stringr str_trim
 #' @importFrom jsonlite fromJSON
 #' @importFrom DiagrammeR create_graph
-#' @importFrom DiagrammeR set_global_graph_attrs 
 #' @importFrom DiagrammeR add_global_graph_attrs
 #' @importFrom DiagrammeR create_node_df
 #' @importFrom DiagrammeR create_edge_df
@@ -143,7 +142,7 @@ graph.viz <- function(symbol, shape=NULL, direction="TD", 
type="graph", graph.wi
   }
   
   graph<- create_graph(nodes_df = nodes_df_new, edges_df = edge_df_new, 
directed = TRUE) %>% 
-    set_global_graph_attrs("layout", value = "dot", attr_type = "graph") %>% 
+    add_global_graph_attrs("layout", value = "dot", attr_type = "graph") %>% 
     add_global_graph_attrs("rankdir", value = direction, attr_type = "graph")
   
   if (type=="vis"){

-- 
To stop receiving notification emails like this one, please contact
zhash...@apache.org.

Reply via email to