From erich.neuwirth at univie.ac.at  Sat May 22 16:08:10 2010
From: erich.neuwirth at univie.ac.at (Erich Neuwirth)
Date: Sat, 22 May 2010 16:08:10 +0200
Subject: [Rd] exmaple problems
Message-ID: <4BF7E54A.9060007@univie.ac.at>

I do not know if this has been reported already
(I searched the headers of the recent messages to r-devel)
It seems that 'example' in R 2.11.0 has a problem when the help file
does not contain any example.
This is what happens on R 2.11.0 on Windows XP.

> library(tools)
> example(Rdiff)
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
  cannot open file
'C:\DOCUME~1\neuwirth\LOCALS~1\Temp\RtmpmknOJe\Rex678418be': No such
file or directory

The error does not occur when there is an example marked #Not Run:

The problem does not appear in R 2.10.1
> library(tools)
> example(Rdiff)
Warning message:
In example(Rdiff) : 'Rdiff' has a help file but no examples
>


-- 
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Center for Computer Science Didactics and Learning Research
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39902 Fax: +43-1-4277-39459



[Rd] exmaple problems
Erich Neuwirth