Hi,

Seems that on RWin 1.7.0 and 1.6.2 isSeekable returns F on binary files,
while seek() works as expected on the same connection - see example below:

	> con = file(nm, "rb")
	> isSeekable(con)
	[1] FALSE
	> readBin(con, double(), 10)
	 [1] 7.263824e-317 5.968155e-317 2.340685e-317 2.734062e-312
4.088386e-312 4.670335e-317
	 [7] 6.097545e-317 3.396341e-312 6.615484e-317 1.365171e-312
	> readBin(con, double(), 10)
	 [1] 1.303796e-317 5.577835e-317 3.409314e-312 1.303543e-317
3.893617e-317 4.077940e-312
	 [7] 6.910006e-313 2.694357e-318 4.088373e-312 6.484955e-317
	> seek(con, 0, origin="start")
	[1] 160
	> readBin(con, double(), 10)
	 [1] 7.263824e-317 5.968155e-317 2.340685e-317 2.734062e-312
4.088386e-312 4.670335e-317
	 [7] 6.097545e-317 3.396341e-312 6.615484e-317 1.365171e-312
	> 

Am I doing something silly or is the function returning the wrong value?

Regards,
Laurens Leerink

	[[alternate HTML version deleted]]


