furrer-lab/abn

CRAN checks fail on platforms w/o INLA

Closed this issue · 0 comments

CRAN flavours that don't have INLA installed raise a note that INLA is suggested but not installed. After this, tests that require INLA fail—obviously.

Decision:
Skip all tests on CRAN that explicitly specify method = "bayes" and with no method specified (these are equivalent).

see for example here:

using R version 4.3.2 (2023-10-31)
using platform: x86_64-apple-darwin20 (64-bit)
R was compiled by
    Apple clang version 14.0.0 (clang-1400.0.29.202)
    GNU Fortran (GCC) 12.2.0
running under: macOS Ventura 13.3.1
using session charset: UTF-8
checking for file ‘abn/DESCRIPTION’ ... OK
this is package ‘abn’ version ‘3.0.6’
package encoding: UTF-8
checking package namespace information ... OK
checking package dependencies ... NOTE
Package suggested but not available for checking: ‘INLA’
checking if this is a source package ... OK
checking if there is a namespace ... OK
checking for executable files ... OK
checking for hidden files and directories ... OK
checking for portable file names ... OK
checking for sufficient/correct file permissions ... OK
checking whether package ‘abn’ can be installed ... [91s/64s] OK
See the [install log](https://www.r-project.org/nosvn/R.check/r-release-macos-x86_64/abn-00install.html) for details.
used C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
used C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
used SDK: ‘MacOSX11.3.sdk’
checking installed package size ... NOTE
  installed size is 14.6Mb
  sub-directories of 1Mb or more:
    data      1.0Mb
    extdata   2.9Mb
    libs      9.5Mb
checking package directory ... OK
checking ‘build’ directory ... OK
checking DESCRIPTION meta-information ... OK
checking top-level files ... OK
checking for left-over 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 ... [2s/6s] OK
checking whether the package can be loaded with stated dependencies ... [2s/6s] OK
checking whether the package can be unloaded cleanly ... [2s/6s] OK
checking whether the namespace can be loaded with stated dependencies ... [2s/6s] OK
checking whether the namespace can be unloaded cleanly ... [2s/6s] OK
checking loading without being on the library search path ... [2s/5s] OK
checking startup messages can be suppressed ... [2s/5s] OK
checking 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 ... [14s/33s] OK
checking Rd files ... [1s/2s] 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 contents of ‘data’ directory ... OK
checking data for non-ASCII characters ... [0s/1s] OK
checking LazyData ... OK
checking data for ASCII and uncompressed saves ... OK
checking line endings in shell scripts ... OK
checking line endings in C/C++/Fortran sources/headers ... OK
checking line endings in Makefiles ... OK
checking compilation flags in Makevars ... OK
checking for GNU extensions in Makefiles ... OK
checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
checking use of PKG_*FLAGS in Makefiles ... OK
checking compiled code ... OK
checking installed files from ‘inst/doc’ ... OK
checking files in ‘vignettes’ ... OK
checking examples ... [7s/13s] OK
checking for unstated dependencies in ‘tests’ ... OK
checking tests ... [582s/586s] ERROR
  Running ‘testthat.R’ [582s/586s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
   3. ├─base::suppressWarnings(...) at test-simulateabn.R:799:7
   4. │ └─base::withCallingHandlers(...)
   5. └─abn::buildScoreCache(...) at test-simulateabn.R:800:9
   6.   └─abn::buildScoreCache.bayes(...)
   7.     └─... %do% ...
   8.       └─e$fun(obj, substitute(ex), parent.frame(), e$data)
   9.         └─base::library(p, character.only = TRUE)
  
  [ FAIL 30 | WARN 0 | SKIP 35 | PASS 485 ]
  Deleting unused snapshots:
  • tographviz/graph.dot
  • tographviz/graph1.dot
  • tographviz/graph_group.dot
  Error: Test failures
  Execution halted
checking for unstated dependencies in vignettes ... OK
checking package vignettes in ‘inst/doc’ ... OK
checking running R code from vignettes ... [2s/2s] NONE
  ‘data_simulation.Rmd’ using ‘UTF-8’... [0s/0s] OK
  ‘mixed_effect_BN_model.Rmd’ using ‘UTF-8’... [0s/0s] OK
  ‘model_specification.Rmd’ using ‘UTF-8’... [0s/0s] OK
  ‘multiprocessing.Rmd’ using ‘UTF-8’... [0s/0s] OK
  ‘paper.Rmd’ using ‘UTF-8’... [0s/0s] OK
  ‘parameter_learning.Rmd’ using ‘UTF-8’... [0s/0s] OK
  ‘quick_start_example.Rmd’ using ‘UTF-8’... [0s/0s] OK
  ‘structure_learning.Rmd’ using ‘UTF-8’... [0s/0s] OK
checking re-building of vignette outputs ... [24s/24s] OK
checking PDF version of manual ... [6s/7s] OK
DONE
Status: 1 ERROR, 2 NOTEs
using check arguments '--no-clean-on-error '