Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (17.6k points)

I am trying to install MXNet / MXNetR on Windows. To do so I did the following, which is recommended on their website (https://mxnet.incubator.apache.org/install/windows_setup.html)

cran <- getOption("repos")

cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/"

options(repos = cran)

install.packages("mxnet")

This worked just fine. Then I tried to load the library, which gives an error:

library(mxnet)

Error: package or namespace load failed for ‘mxnet’:

 Object ‘set_global_graph_attrs’ is not exported by 'namespace:DiagrammeR'

I googled some more and the only help I could find was to try the following, which gave the same error:

library(devtools)

install_version("DiagrammeR", version = "0.9.1", repos = "http://cran.us.r-project.org")

Trying an even earlier version of DiagrammeR also didn't work:

library(devtools)

install_version("DiagrammeR", version = "0.8.1", repos = "http://cran.us.r-project.org")

I could not find any more help, how to deal with this error. I would be glad if someone has an idea.

1 Answer

0 votes
by (41.4k points)

Try this:

library(devtools)

install_version("DiagrammeR", version = "0.9.2", repos = "http://cran.us.r-project.org")

library(DiagrammeR)

library(mxnet)

Before mxnet will load, it wants you to load DiagrammeR.

This helps to further troubleshooting:

?set_global_graph_attrs

If you wish to learn more about What is R Programming then visit this R Programming Course.

Browse Categories

...