• using R Under development (unstable) (2012-05-19 r59366)
  • using platform: x86_64-unknown-linux-gnu (64-bit)
  • using session charset: UTF-8
  • checking for file ‘spatgraphs/DESCRIPTION’ ... OK
  • checking extension type ... Package
  • this is package ‘spatgraphs’ version ‘2.60’
  • checking package namespace information ... OK
  • checking package dependencies ... OK
  • checking if this is a source package ... OK
  • checking if there is a namespace ... OK
  • checking for executable files ... OK
  • checking whether package ‘spatgraphs’ can be installed ... OK
  • checking installed package size ... OK
  • checking package directory ... OK
  • checking for portable file names ... OK
  • checking for sufficient/correct file permissions ... OK
  • checking DESCRIPTION meta-information ... OK
  • checking top-level files ... OK
  • checking index information ... OK
  • checking package subdirectories ... OK
  • checking R files for non-ASCII characters ... OK
  • checking R files for syntax errors ... OK
  • checking whether the package can be loaded ... OK
  • checking whether the package can be loaded with stated dependencies ... OK
  • checking whether the package can be unloaded cleanly ... OK
  • checking whether the namespace can be loaded with stated dependencies ... OK
  • checking whether the namespace can be unloaded cleanly ... OK
  • checking loading without being on the library search path ... OK
  • checking for unstated dependencies in R code ... OK
  • checking S3 generic/method consistency ... OK
  • checking replacement functions ... OK
  • checking foreign function calls ... OK
  • checking R code for possible problems ... OK
  • checking Rd files ... OK
  • checking Rd metadata ... OK
  • checking Rd cross-references ... OK
  • checking for missing documentation entries ... OK
  • checking for code/documentation mismatches ... OK
  • checking Rd \usage sections ... OK
  • checking Rd contents ... OK
  • checking for unstated dependencies in examples ... OK
  • checking line endings in C/C++/Fortran sources/headers ... OK
  • checking line endings in Makefiles ... OK
  • checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
  • checking compiled code ... OK
  • checking examples ... ERROR
    Running examples in ‘spatgraphs-Ex.R’ failed
    The error most likely occurred in:

    > ### Name: spatgraphs-package
    > ### Title: Graphs for spatial point patterns
    > ### Aliases: spatgraphs-package spatgraphs
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > graph_example2d<-function(n=50,k=2,R=0.2)
    + {
    + pp2d<-list(x=runif(n),y=runif(n),n=n,window=list(x=c(0,1),y=c(0,1)))
    + e1<-spatgraph(pp2d,"geometric",par=R)
    + e2<-spatgraph(pp2d,"knn",par=k)
    + e3<-spatgraph(pp2d,"MST")
    + A<-spatcluster(e2)
    + par(mfrow=c(1,3))
    + plot(pp2d,main=paste("Geometric,R =",R))
    + plot(e1,pp2d)
    + plot(pp2d,main=paste("k-nn, k =",k))
    + plot(e2,pp2d)
    + plot(A,pp2d,pch=19)
    + plot(pp2d, main="Minimum spanning tree")
    + plot(e3,pp2d)
    + }
    > graph_example2d()
    >
    > ## Not run:
    > ## 3d example, requires library rgl
    > library(rgl)
    Warning in rgl.init(initValue) : RGL: GLX extension missing on server
    Warning in fun(libname, pkgname) : error in rgl_init
    > graph_example3d<-function(n=200)
    + {
    + w<-c(0,1)
    + phi<-runif(n,0,pi);tau<-runif(n,0,2*pi);r<-runif(n)^0.33
    + pp3d<-list(x=r*sin(tau)*cos(phi),y=r*cos(phi)*cos(tau),z=r*cos(phi),n=n,window=list(x=w,y=w,z=w))
    + e<-spatgraph(pp3d,"RST",par=c(x=0,y=0,z=0))
    + plot3d(pp3d,size=2, main="Radial spanning tree",col="black")
    + plot(e,pp3d,col="plum")
    + }
    > graph_example3d()
    Error in rgl.cur() : rgl_dev_getcurrent
    Calls: graph_example3d ... plot3d -> plot3d.default -> clear3d -> .check3d -> rgl.cur
    Execution halted