@@ -2455,6 +2455,7 @@ output$cugtestdownload <- downloadHandler(
24552455
24562456# since the visibility toggles between two states, set the options to
24572457# not suspend the output when hidden
2458+ # first line was commented out?
24582459output $ mixmxchooser <- renderUI({
24592460 selectInput(' mixmx' , label = ' Choose attribute' ,
24602461 choices = menuattr())
@@ -3170,7 +3171,8 @@ output$diagnosticsplot <- renderPlot({
31703171 modn <- as.numeric(substr(mod ,6 ,6 ))
31713172 mod <- values $ modelfits [[modn ]]
31723173 }
3173- vpp <- length(mod $ coef )
3174+ # vpp <- length(mod$coef)
3175+ vpp <- length(coef(mod ))
31743176 tryCatch(
31753177 mcmc.diagnostics(mod , vars.per.page = vpp ),
31763178 error = function (e ) cat(" MCMC was not run or MCMC sample was not stored." ))
@@ -3187,7 +3189,7 @@ output$mcmcplotdownload <- downloadHandler(
31873189 modn <- as.numeric(substr(mod ,6 ,6 ))
31883190 mod <- values $ modelfits [[modn ]]
31893191 }
3190- vpp <- length(mod $ coef )
3192+ vpp <- length(coef( mod ) )
31913193 pdf(file = file , height = vpp * 4 / 3 , width = 10 )
31923194 tryCatch(
31933195 mcmc.diagnostics(model1reac(), vars.per.page = vpp ),
@@ -3207,7 +3209,7 @@ output$diagnosticsplotspace <- renderUI({
32073209 modn <- as.numeric(substr(mod ,6 ,6 ))
32083210 mod <- values $ modelfits [[modn ]]
32093211 }
3210- vpp <- length(mod $ coef )
3212+ vpp <- length(coef( mod ) )
32113213 plotOutput(' diagnosticsplot' , height = vpp * 400 / 2 )
32123214})
32133215
0 commit comments