[R] Installing packages

Duncan Murdoch dmurdoch at pair.com
Sun Mar 7 04:49:00 CET 2004


On Sat, 6 Mar 2004 13:30:25 -0800 (PST), you wrote:

>Error in int.unzip(zipname, NULL, dest) : destination
>does not exist
>

R tries to build a temporary directory to hold the files, and it
sounds as though it's failing when it does that.  You can see the sort
of name it is trying to use with this command:

> tempfile(,.libPaths()[1])
[1] "F:/R/cvs/r-devel/library\\file27447"

If you don't have permission to create a directory with that name,
then the command will fail.  I'd guess that's your problem.

The way around this is to install the library in a local path, instead
of one where you don't have write access.  You can do this within a
session by calling

.libPaths('c:/newpath')

and on the command line that invoked R by adding the argument
"R_LIBS=c:/newpath".

Notice the use of the forward slash, not a backslash, in the path
name.

Duncan Murdoch




More information about the R-help mailing list