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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: generate_phenodata
> ### Title: Functions to generate phenotype data.
> ### Aliases: generate_phenodata generate_phenodata_1_simple
> ###   generate_phenodata_1 generate_phenodata_2_bvn
> ###   generate_phenodata_2_copula
> 
> ### ** Examples
> 
> 
> # Generate genetic data:
> genodata <- generate_genodata(n_SNV = 20, n_ind = 1000)
> compute_MAF(genodata)
 SNV1  SNV2  SNV3  SNV4  SNV5  SNV6  SNV7  SNV8  SNV9 SNV10 SNV11 SNV12 SNV13 
0.133 0.342 0.433 0.199 0.474 0.161 0.105 0.419 0.011 0.087 0.054 0.281 0.144 
SNV14 SNV15 SNV16 SNV17 SNV18 SNV19 SNV20 
0.342 0.155 0.324 0.387 0.382 0.299 0.178 
> 
> # Generate different phenotype data:
> phenodata1 <- generate_phenodata_1_simple(genodata = genodata[,1],
+                                           type = "quantitative", b = 0)
> phenodata2 <- generate_phenodata_1_simple(genodata = genodata[,1],
+                                           type = "quantitative", b = 2)
> phenodata3 <- generate_phenodata_1_simple(genodata = genodata,
+                                           type = "quantitative", b = 2)
> phenodata4 <- generate_phenodata_1_simple(genodata = genodata,
+                                           type = "quantitative",
+                                           b = seq(0.1, 2, 0.1))
> phenodata5 <- generate_phenodata_1_simple(genodata = genodata[,1],
+                                           type = "binary", b = 0)
> 
> phenodata6 <- generate_phenodata_1(genodata = genodata[,1],
+                                    type = "quantitative", b = 0,
+                                    MAF_cutoff = 1, prop_causal = 0.1,
+                                    direction = "a")
> phenodata7 <- generate_phenodata_1(genodata = genodata,
+                                    type = "quantitative", b = 0.6,
+                                    MAF_cutoff = 0.03, prop_causal = 0.1,
+                                    direction = "a")
> phenodata8 <- generate_phenodata_1(genodata = genodata,
+                                    type = "quantitative",
+                                    b = seq(0.1, 2, 0.1),
+                                    MAF_cutoff = 0.03, prop_causal = 0.1,
+                                    direction = "a")
> 
> phenodata9 <- generate_phenodata_2_bvn(genodata = genodata[,1],
+                                        tau = 0.5, b1 = 0, b2 = 0)
Error: MASS package needed for this function to work. Please install it.
Execution halted