【发布时间】:2014-12-27 04:41:56
【问题描述】:
我正在开发一个闪亮的应用程序。
我有兴趣计算执行某些代码块(例如ggplot 等)所需的时间。
由于某种原因,使用通常的计时方法似乎不适用于响应式调用,例如:
output$R1_C1 <- renderPlot({
beginning <- Sys.time()
<lots of code here>
end <- Sys.time()
print(end - beginning)
R 抱怨并给了我
Error in (structure(function (input, output) :
object 'beginning' not found
有没有人在 Shiny 的响应式调用中找到了一种成功的方法来计时执行速度?
【问题讨论】:
标签: r shiny execution-time