spatstat installation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

spatstat installation

Mauro Pedone
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

Mauro




root@ctrdb10 supporting]#  R CMD INSTALL spatstat_1.63-3.tar.gz
* installing to library ‘/usr/lib64/R/library’
* installing *source* package ‘spatstat’ ...
** package ‘spatstat’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Ediggatsti.c -o
Ediggatsti.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Ediggra.c -o
Ediggra.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Efiksel.c -o
Efiksel.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Egeyer.c -o Egeyer.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Estrauss.c -o
Estrauss.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Kborder.c -o
Kborder.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Knone.c -o Knone.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Krect.c -o Krect.o
g++ -m64 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c Perfect.cc -o
Perfect.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG
-I/systemr/port/Linux-X64/include/zlib -I/systemr/port/Linux-X64/include/xz
-I/systemr/port/Linux-X64/include/bzip2
-I/systemr/port/Linux-X64/include     -fpic  -g -O2  -c areadiff.c -o
areadiff.o

....................................

....................................

    vcov.mppm                               html
    vcov.ppm                                html
    vcov.slrm                               html
    venn.tess                               html
    vertices                                html
    volume                                  html
    weighted.median                         html
    where.max                               html
    whichhalfplane                          html
    whist                                   html
    will.expand                             html
    with.fv                                 html
    with.hyperframe                         html
    with.msr                                html
    with.ssf                                html
    yardstick                               html
    zapsmall.im                             html
    zclustermodel                           html
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error : .onAttach failed in attachNamespace() for 'spatstat', details:
  call: if (today - as.Date(rdate) > 365) {
  error: missing value where TRUE/FALSE needed
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/lib64/R/library/spatstat’

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: [FORGED] spatstat installation

Rolf Turner

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

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: [FORGED] spatstat installation

Adrian Baddeley-3
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 <[hidden email]>
Sent: Wednesday, 15 April 2020 11:55 AM
To: Mauro Pedone <[hidden email]>
Cc: [hidden email] <[hidden email]>; Adrian Baddeley <[hidden email]>; Ege Rubak <[hidden email]>
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]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo