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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.MatrixEQTL
> ### Title: Plot histogram or QQ-plot of all p-values
> ### Aliases: plot.MatrixEQTL
> ### Keywords: QQ-plot histogram
> 
> ### ** Examples
> 
> library(MatrixEQTL)
> 
> # Number of samples
> n = 100 
> 
> # Number of variables
> ngs = 2000
> 
> # Common signal in all variables
> pop = 0.2*rnorm(n)
> 
> # data matrices
> snps.mat = matrix(rnorm(n*ngs), ncol = ngs) + pop
> gene.mat = matrix(rnorm(n*ngs), ncol = ngs) + pop + snps.mat*((1:ngs)/ngs)^9/2
> 
> # data objects for Matrix eQTL engine
> snps1 = SlicedData$new( t( snps.mat ) )
> gene1 = SlicedData$new( t( gene.mat ) )
> cvrt1 = SlicedData$new( )
> rm(snps.mat, gene.mat)
> 
> # Slice data in blocks of 500 variables
> snps1$ResliceCombined(500)
> gene1$ResliceCombined(500)
> 
> # Produce no output files
> filename = NULL # tempfile()
> 
> # Perform analysis recording information for a histogram
> meh = Matrix_eQTL_engine(
+     snps = snps1, 
+     gene = gene1, 
+     cvrt = cvrt1, 
+     output_file_name = filename, 
+     pvOutputThreshold = 1e-100, 
+     useModel = modelLINEAR, 
+     errorCovariance = numeric(), 
+     verbose = TRUE,
+     pvalue.hist = 100)
Processing covariates
Task finished in 0.002 seconds
Processing gene expression data (imputation, residualization)
Task finished in 0.029 seconds
Creating output file(s)
Task finished in 0.01 seconds
Performing eQTL analysis
 6.25% done, 0 eQTLs
12.50% done, 0 eQTLs
18.75% done, 0 eQTLs
25.00% done, 0 eQTLs
31.25% done, 0 eQTLs
37.50% done, 0 eQTLs
43.75% done, 0 eQTLs
50.00% done, 0 eQTLs
56.25% done, 0 eQTLs
62.50% done, 0 eQTLs
68.75% done, 0 eQTLs
75.00% done, 0 eQTLs
81.25% done, 0 eQTLs
87.50% done, 0 eQTLs
93.75% done, 0 eQTLs
100.00% done, 0 eQTLs
No significant associations were found.

Task finished in 1.246 seconds

>     
> plot(meh, col="grey")
> 
> # Perform analysis recording information for a QQ-plot
> meq = Matrix_eQTL_engine(
+     snps = snps1, 
+     gene = gene1, 
+     cvrt = cvrt1, 
+     output_file_name = filename,
+     pvOutputThreshold = 1e-6, 
+     useModel = modelLINEAR, 
+     errorCovariance = numeric(), 
+     verbose = TRUE,
+     pvalue.hist = "qqplot")
Processing covariates
Task finished in 0.017 seconds
Processing gene expression data (imputation, residualization)
Task finished in 0.01 seconds
Creating output file(s)
Task finished in 0.03 seconds
Performing eQTL analysis
 6.25% done, 8 eQTLs
12.50% done, 8 eQTLs
18.75% done, 8 eQTLs
25.00% done, 8 eQTLs
31.25% done, 9 eQTLs
37.50% done, 16 eQTLs
43.75% done, 17 eQTLs
50.00% done, 18 eQTLs
56.25% done, 19 eQTLs
62.50% done, 20 eQTLs
68.75% done, 26 eQTLs
75.00% done, 28 eQTLs
81.25% done, 29 eQTLs
87.50% done, 29 eQTLs
93.75% done, 29 eQTLs
100.00% done, 37 eQTLs
Task finished in 1.281 seconds

>     
> plot(meq)
Warning in title(...) :
  font metrics unknown for Unicode character U+2013
Error in title(...) : 
  conversion failure on '– log' in 'mbcsToSbcs': for –
Calls: plot ... plot.MatrixEQTL -> plot -> plot.default -> localTitle -> title
Execution halted