mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-09 15:08:04 -05:00
Add summary to example 3
This commit is contained in:
@@ -22,3 +22,7 @@ define.shiny.plot('plot1', function() {
|
||||
define.shiny.table('table1', function() {
|
||||
data.frame(x=data$get.value())
|
||||
})
|
||||
|
||||
define.shiny.output('summary1', function() {
|
||||
paste(capture.output(print(summary(data$get.value()))), collapse="\n")
|
||||
})
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
<img id="plot1" class="live-plot"/>
|
||||
|
||||
<pre id="summary1" class="live-text"></pre>
|
||||
|
||||
<div id="table1" class="live-html"></div>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user