can not save my network as XGMML in shinyapps.io

shinyappsio

#1

Hi,

I have a very basic question.

I have a network which is an igraph object I want to save it as XGMML file. When I run the following command, locally I get an xgmml file in the directory of my app, (www folder). But when I deploy it to the shinyapps.io I no longer get an xgmml file in my directory. How can I fix that issue?

saveNetwork(network = ntwrk, name="network", file = "network", type="XGMML")

Appreciate your support!
Thank you
Best Regards,
Karni


#2

Hi,

I have downloaded the network plot as png, using the downloadHandler and this command:

 output$downloadNetwork <- downloadHandler(
          filename = function() {
            "Network.png"
          },
          content = function(file) {
            png(file)
            plot(ntwrk, vertex.color = "pink", vertex.size =  node_size, edge.width = 1, vertex.label.font = 2, vertex.label = node_label) 
            dev.off()
          }
        )

I want to correct what I said in he previous post, as I do not want to save the network, but download it as xgmml file. Is there a way to do that?

Highly appreciate your help!
Best Regards,
Karni Bedirian