
Hello,

I did not understand what you mean by updating the system. I am new
user of R and I downloaded R a few days ago. Also I installed the
required packages for my program(geoR, randomFields), there was just
one version I could see for the packages.
The code I am using is as follows

.Random.seed<-1
N<-300
phi <- 0.25

get_spherical_map <- function(N,phi) {
  sim<-grf(N*N,grid="reg",cov.model="spherical",cov.pars=c(1,phi),method="RF")
  sim$data <- (sim$data - mean(sim$data)) / sd(sim$data)
  local <- array(sim$data, dim=c(N,N))
}

Moreover, on printing the value of .Random.seed I can see the value 1 printed.

Please let me know if you need any more information.

Sincerely,
Maddy


On Sun, Mar 14, 2010 at 1:25 PM, Dieter Menne [via R]
<ml-node+1592613-1493270090-186556@n4.nabble.com> wrote:
> maddy wrote:
> Error in DoSimulateRF(n = n, reg = register, paired = paired) :
>  .Random.seed is not an integer vector but of type 'double'
>
> I tried to trace back the source of the error but installations seem
> correct to me.
> rm(.Random.seed) does not work in my case.
>
> You told us very little. This looks like you are using some old packages
> with a new R system:
>
> Since R 2.8.0
>
>>>Use of a non-integer .Random.seed is now an error. (R itself has never
>>> generated such values, but user code has, and R >= 2.6.0 has given a
>>> warning.) >>
>
> So best update your system. If this does not work, create a dummy example
> with very few data that reproduces the problem. If you can do that, send the
> example to the package maintainer; could be that there is some old code
> involved.
>
> Dieter
>
>
>
>
>
>
>
> ________________________________
> View message @
> http://n4.nabble.com/the-error-in-DoSimulateRF-function-tp1592572p1592613.html
> To unsubscribe from the error in DoSimulateRF function, click here.
>

-- 
View this message in context: http://n4.nabble.com/the-error-in-DoSimulateRF-function-tp1592572p1592622.html
Sent from the R help mailing list archive at Nabble.com.

	[[alternative HTML version deleted]]

