error with report_mig_env
stacomi(database_expected = TRUE, sch= "iav",options(
stacomiR.dbname = "bd_contmig_nat",
stacomiR.host = "localhost",
stacomiR.port = "5432",
stacomiR.user = "iav",
stacomiR.password = "iav"))
r_mig_env<-new("report_mig_env")
r_mig_env<-choice_c(r_mig_env,
dc=c(5),
taxa=c("Anguilla anguilla"),
stage=c("AGJ"),
stationMesure=c("h_vannemer"),
datedebut="2008-01-01",
datefin="2008-12-31",
silent=FALSE)
r_mig_env<-charge(r_mig_env)
r_mig_env<-connect(r_mig_env)
r_mig_env<-calcule(r_mig_env,silent=TRUE)
color_dc<-stacomiR::colortable(color = NULL,r_mig_env@report_mig_mult@dc@dc_selected,palette = "Set2",color_function = c("random"))
color_dc_vec<-color_dc$color
color_dc_vec=setNames(color_dc_vec,color_dc$name)
color_sta_mesure<-stacomiR::colortable(color = NULL, r_mig_env@report_env@stationMesure@env_selected,palette = "Set2",color_function = c("random"))
color_sta_mesure_vec<-color_sta_mesure$color
color_sta_mesure_vec=setNames(color_sta_mesure_vec,color_sta_mesure$name)
stacomiR::plot(r_mig_env,
color_station=color_sta_mesure_vec,
color_dc=color_dc_vec
)
Error in h(simpleError(msg, call)) : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'print' : object 'sta' not found