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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: report_silver_eel-class
> ### Title: Class "report_silver_eel"
> ### Aliases: report_silver_eel-class report_silver_eel
> ### Keywords: classes
> 
> ### ** Examples
> 
> # launching stacomi without selecting the scheme or interface
> stacomi(	database_expected=FALSE)
> # the following script will load data from the two Anguillere monitored in the Somme
> 
> # If you have a working database
> # the following line of code will create the r_silver dataset 
> # from the "fd80." schema in the database
> ## Not run: 
> ##D 	stacomi(database_expected=TRUE, sch="fd80.")	# overrides the default option sch = 'iav'
> ##D 	# prompt for user and password, you can set these in the options, 
> ##D 	# including dbname and host
> ##D 	if (interactive()){
> ##D 		if (!exists("user")){
> ##D 			user <- readline(prompt="Enter user: ")
> ##D 			password <- readline(prompt="Enter password: ")	
> ##D 		}	
> ##D 	}
> ##D 	options(					
> ##D 			stacomiR.dbname = "bd_contmig_nat",
> ##D 			stacomiR.host ="localhost",
> ##D 			stacomiR.port = "5432",
> ##D 			stacomiR.user = user,
> ##D 			stacomiR.user = password						
> ##D 	)	
> ##D 	
> ##D   #create an instance of the class
> ##D   r_silver<-new("report_silver_eel")
> ##D   r_silver<-choice_c(r_silver,
> ##D 	  dc=c(2,6),			
> ##D 	  horodatedebut="2010-09-01",
> ##D 	  horodatefin="2016-10-04",
> ##D 	  silent=FALSE)
> ##D   r_silver<-connect(r_silver)	
> ## End(Not run)
> 	
> # load the dataset generated by previous lines
> data("r_silver")
> # the calculation will fill the slot calcdata
> r_silver<-calcule(r_silver)
> # stages are in r_silver@calcdata[["6"]][,"stage"] 
> #look at data structure using str(r_silver@calcdata[["6"]])
> 
> # standard plot as drawn by Laurent Beaulaton (Analyse des donnees d'argenture acquises en France)
> # showing Durif's stage according to size and eye diameter
> plot(r_silver, plot.type=1)
> 
> # number per month or year and Durif's stage (year if number of dc >1)
> plot(r_silver, plot.type="2")
> 
> # plot showing fulton's coefficient, and size weight graphs
> # inspired from Acou et al., 2009 
> # Differential Production and Condition Indices of Premigrant
> # Eels in Two Small Atlantic Coastal Catchments
> # of France
> plot(r_silver, plot.type="3")
Error in loadNamespace(x) : there is no package called ‘MASS’
Calls: plot ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted