Skip to content
Prev 27995 / 29559 Next

[FORGED] spatstat installation

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

            
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