R/class_bookmark.R

# Bookmark
#
# Why use a custom bookmark ?
# Why a class ? Why a R6 class ?
#


#' @title Bookmark
#' @description  Bookmark class used to bookmark and restore application state.
#'
#'
#' @keywords internal
#' @export 
#' @importFrom R6 R6Class
Bookmark <- R6::R6Class(classname = "Bookmark",
                        public = list(
                          "data"=list(),
                          "global_params"=list(),
                          "chain_ladder"=list(), # list of the different methods/configurations
                          "bootstrap"=list(), # list of the different methods/configurations
                          bookmark=function(state){
                            # TODO
                            # get active methods
                            # update methods
                          },
                          restore=function(state){
                            # TODO
                            # transform list to reactiveValues
                          }
                        )
)
MehdiChelh/triangle.tlbx documentation built on May 18, 2020, 3:14 a.m.