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

> ### Name: datastream_file
> ### Title: File data stream
> ### Aliases: datastream_csv datastream_csv2 datastream_delim
> ###   datastream_delim2 datastream_file datastream_table
> 
> ### ** Examples
> 
> mydata <- iris
> mydata$Species[2:3] <- NA
> ## Example of a CSV file stream
> myfile <- tempfile()
> write.csv(iris, file = myfile, row.names=FALSE, na = "")
> x <- datastream_csv(file = myfile, na.strings = "")
> x
Reference object of class "datastream_csv" 
 Current state: 1 
 Processed: 0 
 Processing finished: FALSE 
csv file stream 
 File: D:\temp\RtmpslUim4\file44f4435f2db8 
 File size (bytes): 4177 
> x$get_points(n=10)
   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1           5.1         3.5          1.4         0.2  setosa
2           4.9         3.0          1.4         0.2  setosa
3           4.7         3.2          1.3         0.2  setosa
4           4.6         3.1          1.5         0.2  setosa
5           5.0         3.6          1.4         0.2  setosa
6           5.4         3.9          1.7         0.4  setosa
7           4.6         3.4          1.4         0.3  setosa
8           5.0         3.4          1.5         0.2  setosa
9           4.4         2.9          1.4         0.2  setosa
10          4.9         3.1          1.5         0.1  setosa
> x
Reference object of class "datastream_csv" 
 Current state: 11 
 Processed: 10 
 Processing finished: FALSE 
csv file stream 
 File: D:\temp\RtmpslUim4\file44f4435f2db8 
 File size (bytes): 4177 
> x$get_points(n=10)
   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1           5.4         3.7          1.5         0.2  setosa
2           4.8         3.4          1.6         0.2  setosa
3           4.8         3.0          1.4         0.1  setosa
4           4.3         3.0          1.1         0.1  setosa
5           5.8         4.0          1.2         0.2  setosa
6           5.7         4.4          1.5         0.4  setosa
7           5.4         3.9          1.3         0.4  setosa
8           5.1         3.5          1.4         0.3  setosa
9           5.7         3.8          1.7         0.3  setosa
10          5.1         3.8          1.5         0.3  setosa
> x
Reference object of class "datastream_csv" 
 Current state: 21 
 Processed: 20 
 Processing finished: FALSE 
csv file stream 
 File: D:\temp\RtmpslUim4\file44f4435f2db8 
 File size (bytes): 4177 
> x$stop()
> 
> ## Create your own specific file stream
> write.table(iris, file = myfile, row.names=FALSE, na = "")
> x <- datastream_file(description="My file defintion stream", FUN=read.table,
+  file = myfile, header=TRUE, na.strings="")
> x$get_points(n=10)
   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1           5.1         3.5          1.4         0.2  setosa
2           4.9         3.0          1.4         0.2  setosa
3           4.7         3.2          1.3         0.2  setosa
4           4.6         3.1          1.5         0.2  setosa
5           5.0         3.6          1.4         0.2  setosa
6           5.4         3.9          1.7         0.4  setosa
7           4.6         3.4          1.4         0.3  setosa
8           5.0         3.4          1.5         0.2  setosa
9           4.4         2.9          1.4         0.2  setosa
10          4.9         3.1          1.5         0.1  setosa
> x
Reference object of class "datastream_file" 
 Current state: 11 
 Processed: 10 
 Processing finished: FALSE 
My file defintion stream 
 File: D:\temp\RtmpslUim4\file44f4435f2db8 
 File size (bytes): 4177 
> 
> 
> 
> cleanEx()
Error: connections left open:
	D:\temp\RtmpslUim4\file44f4435f2db8 (file)
Execution halted