# NOT RUN {
## Only run examples in interactive R sessions
if (interactive()) {
#========================================================================================
#            1)           Use the default User Interface
#========================================================================================
#'
#No need to consider the variables, it is sufficient in  default values.
 fit_GUI_Shiny()
#========================================================================================
#            2)           Change the  User Interface
#========================================================================================
#  We can change the max imput of the number of lesions and the max of number of images
#
 fit_GUI_Shiny(NL.max = 2222,
                NI.max = 3333)
#========================================================================================
#            3)           Change the  Default value
#========================================================================================
  fit_GUI_Shiny(
            DF= data.frame(
            f = c(  8,  16,  18,  13),
            h = c(160,  25,  15,   7)
                         )
            )
#    Note that the following is wrong
  fit_GUI_Shiny(
            DF= data.frame(
            h = c(160,  25,  15,   7),
            f = c(  8,  16,  18,  13)
                         )
            )
#========================================================================================
#            4)           Change the user Imterface
#========================================================================================
     fit_GUI_Shiny(
          DF= data.frame(
            f = c(  8,  16,  18,  13),
            h = c(160,  25,  15,   7)
                ),
                NL.max = 1192,
                NI.max = 794,
                MCMC.chains.max = 6
              )
#========================================================================================
#            5) CUI rather than GUI input
#========================================================================================
#              How to input data using CUI?
#                           This example gives an answer.
#
# CUI:  Characteristic user interface
# Here, I show the very strange data, that is, the number of hits is all 33
# and replicated 10 times, that is,
# h is substituted by rep(33L,10) indicating  33 33 33 33 33 33 33 33 33 33
# f is also same as h.
  fit_GUI_Shiny(NL.initial=555,
               DF =data.frame(
                 f= as.integer(rep(33,10)),
                 h= as.integer(rep(33,10))
               )
 )
# The author made this example since, when I check my program,
# such as whether the color used in polygon() is appropriate or not.
# If user thinks that it is very hard to input hits and false alarms
# by GUI manner, then use this characteristic manner.
#========================================================================================
#            6) Change maximul possible number of chains
#========================================================================================
# We can generate at most 8 chains in MCMC sampling
    fit_GUI_Shiny(  MCMC.chains.max = 8 )
}### Only run examples in interactive R sessions
# }
Run the code above in your browser using DataLab