[R] unlink disables help?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Aug 17 20:31:13 CEST 2006


"Kuhn, Max" <Max.Kuhn at pfizer.com> writes:

> I was hoping that someone could try to reproduce an error that I am
> getting. The R Site Search keeps timing out on me, so apologies of this
> has already come up.
> 
> I'm using 
> 
> > R.version
<never mind>

> 
> When I use unlink as below, the help system is disabled:
> 
> > ?print
> > testPath <- tempdir()
> > print(testPath)
> [1] "C:\\WINDOWS\\TEMP\\Rtmpo5Wnqb"
> > file.exists(testPath)
> [1] TRUE
> > unlink(testPath, recursive = TRUE)
> > ?print
> Error in int.unzip(file.path(path, zipname), topic, tmpd) : 
>         'destination' does not exist
> 
> I can produce the same error with Version 2.3.0 (2006-04-24) on Windows.

Read the documentation *carefully*:

Value:

     For 'tempfile' ....

     For 'tempdir', the path of the per-session temporary directory.


And there is only one, and it is in there that the help system keeps
its stuff....

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list