On 19/01/2010, at 11:24 AM, Senlin Liang wrote:

Hi,

I tried to install spatstat using:
install.packages("spatstat", dependencies = TRUE, lib =
"./R/i486-pc-linux-gnu-library/2.8")

but got the following msg:

--- Please select a CRAN mirror for use in this session ---
<here i selected one mirror, and tried several mirrors)
Loading Tcl/Tk interface ... done
Warning message:
In install.packages("spatstat", dependencies = TRUE, lib =
"./R/i486-pc-linux-gnu-library/2.8") :
  package ‘spatstat’ is not available


any idea why i am getting this error?

The error message is puzzling; spatstat is certainly available.

However you should be getting a ***warning*** message about being
unable to ``rename'' <stuff>/spatstat.

The somewhat mysterious cause of such warnings is that it is
necessary to supply an *absolute* pathname for ``lib'' rather
than a relative pathname as you have done.  I was flummoxed by
this for decades; very recently Simon Urbanek (thank you again
Simon) pointed out to me the error of my ways.

Try something like:

xlib <- paste(getwd(),"/R/i486-pc-linux-gnu-library/2.8",sep="/")
install.packages("spatstat",dependencies=TRUE,lib=xlib)

and see how you go.

        cheers,

                Rolf Turner
######################################################################
Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal www.marshalsoftware.com
######################################################################

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to