dams-mcda / Dams-MCDA

Emma Fox R/Shiny Project with a docker server configuration
1 stars 0 forks source link

current blocking error #1

Closed sythel closed 6 years ago

sythel commented 6 years ago

Warning: Error in cbind: object 'Fish' not found shiny_server_1 | 49: cbind shiny_server_1 | 47: server [/srv/shiny-server/dams_mcda/server.R#193] shiny_server_1 | Error in cbind(Fish, Rec, Res, Cost, Safe, Houses, Power) : shiny_server_1 | object 'Fish' not found

sythel commented 6 years ago

The problem is the variables passed to the function quoted below isn't set until an input button update is fired.

line 180 of server.R

RawCriteriaMatrix <- data.frame(cbind(Fish, Rec, Res, Cost, Safe, Houses, Power))

so lines ~180 -> ~190 need to be fixed.

sythel commented 6 years ago

moved all matrix logic to generateMatrix event Listener and changed the button on the output page to be "Generate". Added all output code outside of function inside so there is no need for setting an inital value for Fish, etc.

changes made in commit 3759c28 branch matrix_bug

sythel commented 6 years ago

closing #1