小编Ika*_*ka8的帖子

Can I access to session values in onSessionEnded event in shiny?

Can I access to session values from onStop / onSessionEnded functions?

onStop(function() {
            cat(file = stderr(), paste(app, session$clientData$url_protocol, sep = ' - '))
        })
Run Code Online (Sandbox Code Playgroud)

That code gives me this error: Error in .getReactiveEnvironment()$currentContext: Operation not allowed without an active reactive context.

There is a way to get session values inside this functions?

If not, there is a way to execute a function just before the session is ended?

Thanks.

r shiny

1
推荐指数
1
解决办法
347
查看次数

标签 统计

r ×1

shiny ×1