R/fob_output.R

Defines functions fob_output

Documented in fob_output

#' Add an output.
#'
#' @param FUN a function a character string that will be displayed. 
#' @param field_name Field name.
#'
#' @return An object of class `output`.
#' @export

fob_output <- function(FUN, field_name = NULL) {
  structure(
    function(...) do.call(FUN, ...),
    class = "output",
    field_name = NULL
  )
}
inSileco/formbuildr documentation built on Jan. 1, 2021, 4:20 a.m.