[R-sig-Geo] [FORGED] spatstat installation

Adrian Baddeley @dr|@n@b@dde|ey @end|ng |rom curt|n@edu@@u
Wed Apr 15 06:09:16 CEST 2020


The current version of R is 3.6-3.
You are trying to install with R version 3.3-0.

Although the spatstat description file says that R >= 3.3-0 is acceptable,
this could be wrong,

I suggest you update the installation of R to the latest version 3.6-3 and then try installing spatstat.


Prof Adrian Baddeley DSc FAA

John Curtin Distinguished Professor

Department of Mathematics and Statistics

Curtin University, Perth, Western Australia


I work Wednesdays, Thursdays and Fridays

________________________________
From: Rolf Turner <r.turner using auckland.ac.nz>
Sent: Wednesday, 15 April 2020 11:55 AM
To: Mauro Pedone <pedone.mauro using gmail.com>
Cc: r-sig-geo using r-project.org <r-sig-geo using r-project.org>; Adrian Baddeley <adrian.baddeley using curtin.edu.au>; Ege Rubak <rubak using math.aau.dk>
Subject: Re: [FORGED] [R-sig-Geo] spatstat installation


On 15/04/20 5:23 am, Mauro Pedone wrote:

> Hello ,
> I am trying the spatstat package installation
> on R 3.3.0
>
> the package is spatstat_1.63-3.tar.gz
> ,the OS is oracle enterprise linux 7
>
> at the end I receive the error
> Error : .onAttach failed in attachNamespace() for 'spatstat', details:
>    call: if (today - as.Date(rdate) > 365) {
>    error: missing value where TRUE/FALSE needed
>
> ask to the community if someone encountered this problem.
>
> thanks and regards

Dear Mauro,

I would guess that this has really nothing to do with spatstat as such,
but rather something to do with how your system is processing dates.

The code involved is found in the file versions.R.  One can run the
relevant code from the command line:

today <- Sys.Date()
rv <- R.Version()
rdate <- with(rv, ISOdate(year, month, day))
chk <- today - as.Date(rdate)
if(chk > 365) cat("\nWhoops\n!") else cat("\nAlright!\n")

When I run this code, "Alright!" is duly echoed.

Printing "chk" gives "Time difference of 46 days" and 'chk > 365"
produces FALSE.

What happens when you run this code?  Look at today, rv, rdate, and chk,
and try to figure out why a missing value is appearing.

cheers,

Rolf Turner

--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list