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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: wash.out
> ### Title: Time Series Outlier Detection (washer)
> ### Aliases: wash.out
> 
> ### ** Examples
> 
> ## data without outliers but structured with co-movement between groups
> data("dati")
> ## first column for phenomenon
> ## 2° col for time written in ordered number or strings
> ## 3° col for group classification variable
> ## 4° col for values
> str(dati)
'data.frame':	800 obs. of  4 variables:
 $ phen : chr  "Temperature" "Temperature" "Temperature" "Temperature" ...
 $ time : int  1 1 1 1 1 1 1 1 1 1 ...
 $ zone : chr  "a01" "a02" "a03" "a04" ...
 $ value: num  2.43 20.39 25.26 7.07 16.04 ...
> ## 1° -> data.frame + no outlier
> out=wash.out(dati)
[1] phenomenon: 1          
[1] phenomenon: 2          
[1] "NO outlier!!!"
> out
 [1] fen         t.2         series      y.t.1       y.t.2       y.t.3      
 [7] test.AV     AV          n           median.AV   mad.AV      madindex.AV
<0 rows> (or 0-length row.names)
> length(out[,1])
[1] 0
> ## add two outliers
> ####  time=3 temperature value=0
> dati[99,4]=  0
> ## ... and after for "rain" phenomenon!
> ####  time=3 rain value=37
> dati[118,4]=  37
> ##  2° -> data.frame + 2 outliers
> out=wash.out(dati)
[1] phenomenon: 1          
[1] phenomenon: 2          
> ##  all "three terms" time series
> ## let's take a look at anomalous time series
> out
            fen t.2 series     y.t.1     y.t.2     y.t.3   test.AV        AV  n
18         Rain   2    a18  5.976064  6.351090 37.000000  9.115422 -45.98434 20
38         Rain   3    a18  6.351090 37.000000  6.365202 34.061950  90.85241 20
58         Rain   4    a18 37.000000  6.365202  5.548666 15.128885 -45.67519 20
379 Temperature   2    a19 22.437381 21.187477  0.000000  9.280535  21.32410 20
399 Temperature   3    a19 21.187477  0.000000 18.374270 30.337614 -43.36528 20
     median.AV   mad.AV madindex.AV
18   7.1393080 5.827887   38.852580
38  -4.0352698 2.785738   18.571589
58   4.7614879 3.333800   22.225334
379  0.3596105 2.258974   15.059825
399 -0.6780855 1.407072    9.380478
> ## ... the same but save results in a specified file....
> ## If you don't specify the file the name is by default "out.csv"
> out=wash.out(dati,save_out=TRUE,out_out="tabel_out.csv")
[1] phenomenon: 1          
[1] phenomenon: 2          
[1] "File 'tabel_out.csv' saved!"
[1] "Dir ->  /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/washeR.Rcheck"
> out
            fen t.2 series     y.t.1     y.t.2     y.t.3   test.AV        AV  n
18         Rain   2    a18  5.976064  6.351090 37.000000  9.115422 -45.98434 20
38         Rain   3    a18  6.351090 37.000000  6.365202 34.061950  90.85241 20
58         Rain   4    a18 37.000000  6.365202  5.548666 15.128885 -45.67519 20
379 Temperature   2    a19 22.437381 21.187477  0.000000  9.280535  21.32410 20
399 Temperature   3    a19 21.187477  0.000000 18.374270 30.337614 -43.36528 20
     median.AV   mad.AV madindex.AV
18   7.1393080 5.827887   38.852580
38  -4.0352698 2.785738   18.571589
58   4.7614879 3.333800   22.225334
379  0.3596105 2.258974   15.059825
399 -0.6780855 1.407072    9.380478
> ## put the limit from 5 to 10 to capture only the worst outliers
> out=wash.out(dati, val_test_limit = 10  )
[1] phenomenon: 1          
[1] phenomenon: 2          
> out
            fen t.2 series    y.t.1     y.t.2     y.t.3  test.AV        AV  n
38         Rain   3    a18  6.35109 37.000000  6.365202 34.06195  90.85241 20
58         Rain   4    a18 37.00000  6.365202  5.548666 15.12888 -45.67519 20
399 Temperature   3    a19 21.18748  0.000000 18.374270 30.33761 -43.36528 20
     median.AV   mad.AV madindex.AV
38  -4.0352698 2.785738   18.571589
58   4.7614879 3.333800   22.225334
399 -0.6780855 1.407072    9.380478
> ## save plots and outliers in a pdf file "out.pdf" as a default
> out=wash.out(dati, val_test_limit = 10,graph=TRUE)
[1] phenomenon: 1          
[1] phenomenon: 2          
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/gtools/libs/gtools.so':
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/gtools/libs/gtools.so: failed to map segment from shared object
Calls: wash.out ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted