inst/template/R/outputs.R

# Function names should be consistent with the output IDs
# will be used to render outputs

text_result <- function(result, ...){
  result$get_value('my_text_result')
}


plot_result <- function(result, ...) {
  pl <- result$get_value('my_plot_result')
  
  plot(pl$x, pl$y, type='l')
}
beauchamplab/rave documentation built on Feb. 23, 2024, 7:20 a.m.