R Under development (unstable) (2024-02-05 r85863 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(nat) Loading required package: rgl Registered S3 method overwritten by 'nat': method from as.mesh3d.ashape3d rgl Some nat functions depend on a CMTK installation. See ?cmtk and README.md for details. Attaching package: 'nat' The following objects are masked from 'package:base': intersect, setdiff, union > library(httr) > > # suppress RGL in headless environments (some CRAN build machines fail otherwise) > if(!interactive()) + Sys.setenv(RGL_USE_NULL=TRUE) > > # Is internet accessible? > internet.ok = identical( + try( + status_code( + HEAD("http://flybrain.mrc-lmb.cam.ac.uk/", timeout(2)) + ), + silent = TRUE + ), + 200L + ) > > if(Sys.getenv('NOT_CRAN') == "true" && internet.ok) { + # note that we want to run all tests requiring internet access + Sys.setenv(NAT_INTERNET_TESTS="TRUE") + # Run all test files + test_check("nat") + } else { + # We're on CRAN or flybrain is inacessible, so don't run anything involving + # remote files + Sys.setenv(NAT_INTERNET_TESTS="") + test_check("nat", filter="^[^.]+") + } adding: testdata/neuron/testneuron_am3d.am (deflated 45%) adding: testdata/neuron/testneuron_lineset.am (deflated 69%) adding: DA1/EBH11R.swc (deflated 53%) adding: DA1/EBH20R.swc (deflated 54%) adding: DA1/EBI12L.swc (deflated 54%) adding: DL3/EBH20L.swc (deflated 54%) adding: DL3/EBI22R.swc (deflated 53%) [ FAIL 0 | WARN 0 | SKIP 6 | PASS 788 ] ══ Skipped tests (6) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test-cmtk.R:23:1', 'test-cmtkreg.R:58:3', 'test-ndigest.R:9:3' • empty test (3): 'test-neuron-io.R:992:1', 'test-neuronlist.R:90:1', 'test-potential_synapses.R:3:1' [ FAIL 0 | WARN 0 | SKIP 6 | PASS 788 ] > > proc.time() user system elapsed 15.84 1.68 18.40