Running examples in ‘phenModel-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: assign_observed_data
> ### Title: Observed Data Preparation
> ### Aliases: assign_observed_data
> 
> ### ** Examples
> 
> data(casement9596)
> casement1995 <- data.frame(casement9596, 
+                            with(casement9596, 
+                                 get_total_info(Tmax, Tmin, Tbase = 7, Lat, day)))
Warning in asin((Tbase - Tmean)/alpha) : NaNs produced
> 
> ## loading fitted parameters
> data(pvulg_budburst_parameters)
> data(pvulg_weibull_parameters)
> data(pvulg_lactin_parameters)
> 
> ## evaluating model
> quantiles_seq <- seq(.001, .95, .001)
> 
> phen95 <- phen_model(Tmean = "Tmean",
+                      thermal_units = "thermal_units",
+                      chill_days = "chill_days",
+                      day_length = "day_length",
+                      bud_pars = pvulg_budburst_parameters,
+                      weib_pars = pvulg_weibull_parameters,
+                      lactin_pars = pvulg_lactin_parameters,
+                      max_day_length = 14.92,
+                      pop_quantiles = quantiles_seq,
+                      data = casement1995)
> 
> phen95_gen2 <- phen_model_gen2(Tmean = "Tmean",
+                                day_length = "day_length",
+                                bud_pars = pvulg_budburst_parameters,
+                                weib_pars = pvulg_weibull_parameters,
+                                lactin_pars = pvulg_lactin_parameters,
+                                sex_mat_day = phen95["0.05","sexual_maturation_day"],
+                                pop_quantiles = .05,
+                                data = casement1995)
> 
> ## adding observed points
> made_up_data <- assign_observed_data(obj = phen95,
+                                      eggs = c(182,184,204,227,233,242),
+                                      larvae = c(204,227,233,242,249),
+                                      adults = c(204,212,220,221,222,224,227,233,242,269,283,298,
+                                                 305,310,311,312,313,314,315,316,317,318,
+                                                 319,320,321,322,323,334,325,326,327,328,
+                                                 329,330,331,332))
> 
> plot_phen_model(obj = phen95, obj_gen2 = phen95_gen2,
+                 observed_data = made_up_data)
Using  as id variables
Using  as id variables
Using  as id variables
Warning: Removed 516 rows containing non-finite values (stat_ydensity).
Warning: Removed 1 rows containing missing values (geom_point).
Warning: Removed 88 rows containing missing values (geom_point).
Error: Unknown colour name: 1
Execution halted