The choice_c method will issue a warning if the year is not present in the database Allows the selection of year and the assignment in environment envir_stacomi
# S4 method for ref_year
choice_c(
object,
annee,
nomassign = "ref_year",
funoutlabel = gettext("Year selected\n", domain = "R-stacomiR"),
silent = FALSE
)
An object of class ref_year-class
The year to select, either as a character or as a numeric
The name to be assigned in envir_stacomi
The label that appears in funout
Stops messages from being displayed if silent=TRUE, default FALSE
object An object of class ref_year-class with year selected
# NOT RUN {
object=new("ref_year")
object<-charge(object)
win=gwindow(title="test ref_year")
group=ggroup(container=win,horizontal=FALSE)
choice(object,nomassign="ref_year",funoutlabel="essai",titleFrame="essai ref_year",preselect=1)
dispose(win)
# }
Run the code above in your browser using DataLab