Running examples in 'stUPscales-Ex.R' failed
The error most likely occurred in:

> ### Name: PlotEval
> ### Title: Function to execute evaluation plot
> ### Aliases: PlotEval
> ### Keywords: PlotEval Plot
> 
> ### ** Examples
> 
> time <- seq(from = as.POSIXct("2017-11-09"), by = 60*60*24, length.out = 230) # the time vector
> data <- cbind.data.frame(time, NA) # a NA vector
> data[,3] <- rnorm(230, .25, .1) # random normal distributed data, obs
> data[,4] <- data[,3]*1.2  # positive correlated data, sim
> data[,5] <- data[,4] - data[,3] # difference sim and obs
> data[,6] <- 0 # driving force
> data[,7] <- NA # a NA vector
> 
> colnames(data) <- c("time", "var1", "obs", "sim", "difference", "Rainfall", "Rainfall2")
> head(data)
        time var1       obs       sim difference Rainfall Rainfall2
1 2017-11-09   NA 0.1873546 0.2248255 0.03747092        0        NA
2 2017-11-10   NA 0.2683643 0.3220372 0.05367287        0        NA
3 2017-11-11   NA 0.1664371 0.1997246 0.03328743        0        NA
4 2017-11-12   NA 0.4095281 0.4914337 0.08190562        0        NA
5 2017-11-13   NA 0.2829508 0.3395409 0.05659016        0        NA
6 2017-11-14   NA 0.1679532 0.2015438 0.03359063        0        NA
> 
> ts <- IsReg.ts(data, "%Y-%m-%d", "ECT")
> ts <- ts[[2]]
> 
> gof.new <- GoF(data, 4, 3, "")
> gof.new
                    
ME       0.050771852
MAE      0.050771852
MSE      0.002940053
RMSE     0.054222258
NRMSE % 56.900000000
PBIAS % 20.000000000
RSR      0.568517554
rSD      1.200000000
NSE      0.675376384
mNSE     0.329540642
rNSE     0.715376384
d        0.937076986
md       0.707685263
rd       0.944830336
cp       0.844964920
r        1.000000000
R2       1.000000000
bR2      0.833333333
KGE      0.717157288
VE       0.800000000
> 
> PlotEval(data, ts, gof.new, "ExamplePlot", "topright", "topright", "topright")
Error in dev.off() : failed to load sRGB colorspace file
Calls: PlotEval -> dev.off
Execution halted
Error: failed to load sRGB colorspace file
Fatal error: error during cleanup