[Rd] exmaple problems

Erich Neuwirth erich.neuwirth at univie.ac.at
Sat May 22 16:08:10 CEST 2010


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



More information about the R-devel mailing list