Skip to content

Commit 1a17b8c

Browse files
committed
fix font and spacing of simulation summary
1 parent 71cf411 commit 1a17b8c

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

server.R

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,12 +2445,11 @@ output$simsummary <- renderPrint({
24452445
sim <- isolate(model1simreac())
24462446
n <- isolate(input$nsims)
24472447
sum <- list()
2448-
sum[1] <- "\n"
2449-
sum[2] <- paste("Number of Networks: ",n, "\n")
2450-
sum[3] <- paste("Model: ", nwname(),' ~ ',ergm.terms(), "\n")
2451-
sum[4] <- paste("Reference: ", format(attr(sim,'reference')), "\n")
2452-
sum[5] <- paste("Constraints: ", format(attr(sim, 'constraints')), "\n")
2453-
sum[6] <- paste("Parameters: \n")
2448+
sum[1] <- paste(" Number of Networks: ",n, "\n")
2449+
sum[2] <- paste("Model: ", nwname(),' ~ ',ergm.terms(), "\n")
2450+
sum[3] <- paste("Reference: ", format(attr(sim,'reference')), "\n")
2451+
sum[4] <- paste("Constraints: ", format(attr(sim, 'constraints')), "\n")
2452+
sum[5] <- paste("Parameters: \n")
24542453
cat(unlist(sum))
24552454
})
24562455

@@ -2464,6 +2463,13 @@ output$simcoef <- renderPrint({
24642463
write.table(c, quote=FALSE, row.names=FALSE, col.names=FALSE)
24652464
})
24662465

2466+
output$simstatslabel <- renderPrint({
2467+
if (input$simButton == 0){
2468+
return(cat(''))
2469+
}
2470+
cat(' Stored network statistics:')
2471+
})
2472+
24672473
output$simstats <- renderPrint({
24682474
if (input$simButton == 0){
24692475
return(cat(''))

ui.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,8 +1000,7 @@ url = {http://statnetproject.org}
10001000
wellPanel(
10011001
verbatimTextOutput('simsummary'),
10021002
verbatimTextOutput('simcoef'),
1003-
p('Stored network statistics:',
1004-
style='font-family:monospace; margin:0 0 0 2px; font-size:13px;'),
1003+
verbatimTextOutput('simstatslabel'),
10051004
verbatimTextOutput('simstats')
10061005
)
10071006
),

www/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,11 @@ div.docpopup {
128128
background: #FFFFFF;
129129
}
130130

131-
#simsummary {
131+
#simsummary,
132+
#simstatslabel {
132133
border-style: none;
133134
padding: 0px;
134-
margin: 0px
135+
margin: 0px;
135136
}
136137
#simcoef,
137138
#simstats {

0 commit comments

Comments
 (0)