forked from mbadge/candi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraceOutput.Rd
34 lines (33 loc) · 1003 Bytes
/
traceOutput.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module_traceOutput.R
\name{traceOutput}
\alias{traceOutput}
\title{Trace verbatim outputs of reactive variables}
\usage{
traceOutput(id)
}
\description{
Trace verbatim outputs of reactive variables
}
\examples{
if (interactive()) {
library(shiny)
shinyApp(
ui = fluidPage(
shinyjs::useShinyjs(),
textInput("user_name", "Radiologist Name:", value = "Marcus"),
traceOutput("trace")
),
server = function(input, output, session) {
callModule(trace, "trace",
user_nameIn = reactive(input$user_name),
usrImpressionDf = reactive(mtcars),
usageLst = reactive({
cdata <- session$clientData
cnames <- names(cdata)
cvals <- lapply(cnames, function(name) {cdata[[name]]})
cvals \%>\% purrr::set_names(cnames)
}))
}
)}
}