mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
capture.output() has already considered withVisible(), and we do not need to redo it
This commit is contained in:
@@ -368,11 +368,7 @@ renderPrint <- function(expr, env=parent.frame(), quoted=FALSE, func=NULL) {
|
||||
}
|
||||
|
||||
markRenderFunction(verbatimTextOutput, function() {
|
||||
return(paste(capture.output({
|
||||
result <- withVisible(func())
|
||||
if (result$visible)
|
||||
print(result$value)
|
||||
}), collapse="\n"))
|
||||
paste(capture.output(func()), collapse = "\n")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user