Running ‘adaptiveSchemesTest.R’ [17s/21s]
  Running ‘fromSPDFTest.R’ [17s/18s]
  Running ‘gridAverageTest.R’ [20m/22m]
  Running ‘gridSummaryTest.R’ [16s/20s]
  Running ‘iteratorTest.R’ [17s/18s]
  Running ‘lgcpMethodsTest.R’ [27s/31s]
  Running ‘mstpppClassTest.R’ [17s/19s]
  Running ‘stpppClassTest.R’ [17s/21s]
Running the tests in ‘tests/gridAverageTest.R’ failed.
Complete output:
  > library(lgcp)
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  Please note that 'maptools' will be retired during October 2023,
  plan transition at your earliest convenience (see
  https://r-spatial.org/r/2023/05/15/evolution4.html and earlier blogs
  for guidance);some functionality will be moved to 'sp'.
   Checking rgeos availability: TRUE
  rgeos version: 0.6-4, (SVN revision 699)
   GEOS runtime version: 3.12.0-CAPI-1.18.0 
   Please note that rgeos will be retired during October 2023,
  plan transition to sf or terra functions using GEOS at your earliest convenience.
  See https://r-spatial.org/r/2023/05/15/evolution4.html for details.
   GEOS using OverlayNG
   Linking to sp version: 2.0-0 
   Polygon checking: TRUE 
  
  
   Welcome to 'lgcp': Log-Gaussian Cox Process
   B. M. Taylor & T. M. Davies & B. S. Rowlingson & P. J. Diggle.
  
  Type '?lgcp' for details.
  
  Type 'lgcpvignette()' to view the basic package vignette.
  
  Type 'lgcpbayes()' to view the Bayesian package vignette.
  
  Type 'citation("lgcp")' to view the citation for this package.
  
  Please see the lgcp package NEWS file for latest additions, changes and bug fixes.
  
  Note, RandomFields covariance functions are currently unavailable.
  > 
  > n <- 3 # "number of iterations"
  > m <- 3 # "number of aggregated time points"
  > temporal.fitted <- c(1,2,3) # required to set up MonteCarloAverage
  > SpatialOnlyMode <- FALSE
  > 
  > M <- 5
  > N <- 5
  > 
  > Y <- list()
  > for(i in 1:n){
  +     Y[[i]] <- list()
  +     for (j in 1:m){
  +         Y[[i]][[j]] <- matrix(runif(25),5,5)
  +     }
  + }
  > 
  > fun1 <- function(Y){
  +     return(Y)
  + }
  > fun2 <- function(Y){
  +     return(Y^2)
  + }
  > 
  > mca <- MonteCarloAverage(list("fun1","fun2"))
  > 
  > GAinitialise(mca)
  NULL
  > oldtags <- list()
  > for(i in 1:n){
  +     oldtags$Y <- Y[[i]]
  +     GAupdate(mca)
  + }
  > 
  > GAfinalise(mca)
  > 
  > ret <- GAreturnvalue(mca)
  > 
  > Ymean <- as.list(rep(0,m))
  > Ymean2 <- as.list(rep(0,m))
  > for(i in 1:n){
  +     for (j in 1:m){
  +         Ymean[[j]] <- Ymean[[j]] + Y[[i]][[j]]
  +         Ymean2[[j]] <- Ymean2[[j]] + Y[[i]][[j]]^2
  +     }
  + }
  > for (j in 1:m){
  +     Ymean[[j]] <- Ymean[[j]]/n
  +     Ymean2[[j]] <- Ymean2[[j]]/n
  + }
  > 
  > for (j in 1:m){
  +     print(all(ret$return[[1]][[j]]==Ymean[[j]]))
  +     print(all(ret$return[[2]][[j]]==Ymean2[[j]]))
  + }
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  > 
  > 
  > proc.time()
     user  system elapsed 
   16.515   1.285  19.197 
  Assertion failure at kmp_runtime.cpp(6918): temp_reg_status_file_name.
  OMP: Error #13: Assertion failure at kmp_runtime.cpp(6918).
  OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/.
  Assertion failure at kmp_runtime.cpp(6918): temp_reg_status_file_name.
  OMP: Error #13: Assertion failure at kmp_runtime.cpp(6918).
  OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/.
  Killed