The console shows the following error when the Network Descriptives tab is selected:
The code it refers to is this:
|
output$mixmxchooser <- renderUI({ |
|
selectInput('mixmx', label='Choose attribute', |
|
choices = menuattr()) |
|
}) |
|
outputOptions(output,'mixmxchooser',suspendWhenHidden=FALSE) |
|
|
|
output$mixingmatrix <- renderPrint({ |
|
if(!is.network(nw())) {return()} |
|
if(!is.null(input$mixmx)){ |
|
mixingmatrix(nw(), input$mixmx)} |
|
}) |
If IIUC, the menuattr is a cleaned list of attributes that excludes "vertex.names" and "na":
|
#don't allow "na" or "vertex.names" as vertex attributes in menus on fit tab |
|
menuattr <- reactive({ |
|
menuattr <- attrib() |
|
if(is.element("na",menuattr)){ |
|
menuattr <- menuattr[-which("na"==menuattr)] |
|
} |
|
if(is.element("vertex.names",menuattr)){ |
|
menuattr <- menuattr[-which("vertex.names"==menuattr)] |
|
} |
|
menuattr |
|
}) |
So I'm not sure what the problem is.
@mbojan if you have any ideas, pls lmk, thx.
The console shows the following error when the Network Descriptives tab is selected:
The code it refers to is this:
statnetWeb/inst/shiny/statnetWeb/server.R
Lines 2458 to 2468 in dd1f1cd
If IIUC, the
menuattris a cleaned list of attributes that excludes "vertex.names" and "na":statnetWeb/inst/shiny/statnetWeb/server.R
Lines 500 to 510 in dd1f1cd
So I'm not sure what the problem is.
@mbojan if you have any ideas, pls lmk, thx.