I do not know why, but I see the same problem in the latest R 2.15.1
patched and current package versions on CRAN, Windows 7 64-bit.

You should report to the maintainer of spatialkernel. It seems unlikely
that anyone else can help without investigating the package source in
detail.

Cheers, Mike


On Monday, July 2, 2012, 박철봉 wrote:

> Hello,
> I am using function "lambdahat" in "spatialkernel" for my data analysis.
> I meet a problem.  I find under WinXP and Win7, when my code runs to the
> line of function "lambdahat", R will shut down, without any error message.
> Sometimes, it does work for 1 or 2 times. However, if I try continuously, R
> will shut down. The strange thing is that if I try the code under Linux
> system, it works very well.
> Does anyone know why?
>
>  Below is my code:
>
>  *library(spatstat)*
> *library(spatialkernel)*
> *pol=c(0, 1, 1, 0, 0, 0, 1, 1)*
> *dim(pol) = c(4, 2)*
> *
> *
> *aa = rpoispp(100)*
> *bb = density(aa)*
> *cc = as.matrix(data.frame(gx = aa$x, gy = aa$y))*
> *
> *
> *loci = matrix(ncol = 2, nrow = 16384)*
> *loci[,1] = rep(bb$xcol, each = 128)*
> *loci[,2] = rep(bb$yrow, times = 128)*
> *
> *
> *lam = lambdahat(pts = cc, h = 0.1, gpts = loci, poly = pol)
>
> Regards,
> Vincent
> *
>
>
>
>

-- 
Michael Sumner
Hobart, Australia
e-mail: mdsumner@gmail.com

	[[alternative HTML version deleted]]

