* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/metR.Rcheck’ * using R Under development (unstable) (2025-05-02 r88186) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-15 (GCC) 15.1.0 GNU Fortran (GCC) 15.1.0 * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘metR/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘metR’ version ‘0.18.0’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... INFO Package suggested but not available for checking: ‘PCICt’ * 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 ‘metR’ can be installed ... [24s/25s] OK * 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 code 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 whether startup messages can be suppressed ... OK * checking use of S3 registration ... 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 ... [34s/35s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘metR-Ex.R’ failed The error most likely occurred in: > ### Name: ConvertLongitude > ### Title: Converts between longitude conventions > ### Aliases: ConvertLongitude > > ### ** Examples > > library(ggplot2) > library(data.table) > ## Don't show: > data.table::setDTthreads(1) > ## End(Don't show) > data(geopotential) > > ggplot(geopotential[date == date[1]], aes(lon, lat, z = gh)) + + geom_contour(color = "black") + + geom_contour(aes(x = ConvertLongitude(lon))) > > map <- setDT(map_data("world")) Error in map_data("world") : The package "maps" is required for `map_data()`. Calls: setDT -> is.data.table -> map_data -> check_installed Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [48s/45s] [48s/46s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(metR) > # library(vdiffr) > > on_cran <- !isTRUE(as.logical(Sys.getenv("NOT_CRAN", "false"))) > if (on_cran) data.table::setDTthreads(2) > > test_check("metR") [ FAIL 23 | WARN 0 | SKIP 2 | PASS 151 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-GetTopography.R:3:5', 'test-ReadNetCDF.R:66:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-ReadNetCDF.R:6:5'): returns a data.table ─────────────────────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:6:5 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─metR::ReadNetCDF(file) 5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 6. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:11:5'): GlanceNetCDF prints nicely ──────────────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. ├─testthat::expect_known_output(print(GlanceNetCDF(file)), "GlanceNetCDF") at test-ReadNetCDF.R:11:5 2. │ ├─base::append(act, eval_with_output(object, print = print, width = width)) 3. │ └─testthat:::eval_with_output(object, print = print, width = width) 4. │ ├─withr::with_output_sink(path, withVisible(code)) 5. │ │ └─base::force(code) 6. │ └─base::withVisible(code) 7. ├─base::print(GlanceNetCDF(file)) 8. └─metR::GlanceNetCDF(file) 9. └─metR::ReadNetCDF(file, out = "vars") 10. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 11. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:16:5'): subsetting works ────────────────────────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. └─metR::ReadNetCDF(file, subset = list(lat = -90:20)) at test-ReadNetCDF.R:16:5 2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 3. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:32:9'): naming works ────────────────────────────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. ├─testthat::expect_true(...) at test-ReadNetCDF.R:31:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─metR::ReadNetCDF(file, vars = c(air2 = "air")) at test-ReadNetCDF.R:32:9 5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 6. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:38:5'): different outs work ─────────────────────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. ├─testthat::expect_s3_class(ReadNetCDF(file), "data.table") at test-ReadNetCDF.R:38:5 2. │ └─testthat::quasi_label(enquo(object), arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─metR::ReadNetCDF(file) 5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 6. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:47:5'): time dimension without 'since' works ────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. └─metR::ReadNetCDF(file) at test-ReadNetCDF.R:47:5 2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 3. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:53:5'): can parse calendar correcly ─────────────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. └─metR::ReadNetCDF(file, vars = "zg") at test-ReadNetCDF.R:53:5 2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 3. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:59:5'): can read from nc_open ───────────────────── Error in `loadNamespace(x)`: there is no package called 'ncdf4' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-ReadNetCDF.R:59:5 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-ReadNetCDF.R:76:5'): can read variables with no dimension ────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. ├─testthat::expect_equal(ReadNetCDF(file, "projection"), 1) at test-ReadNetCDF.R:76:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─metR::ReadNetCDF(file, "projection") 5. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 6. └─metR:::stopf(...) ── Error ('test-ReadNetCDF.R:82:5'): function in vars works ──────────────────── Error in `check_packages(c("ncdf4", "PCICt"), "ReadNetCDF")`: ReadNetCDF needs packages ncdf4, PCICt. Install them with: 'install.packages(c("ncdf4", "PCICt"))'. Backtrace: ▆ 1. └─metR::ReadNetCDF(file, vars = "o3_conc") at test-ReadNetCDF.R:82:5 2. └─metR:::check_packages(c("ncdf4", "PCICt"), "ReadNetCDF") 3. └─metR:::stopf(...) ── Error ('test-Smooth2D.R:2:1'): (code run outside of `test_that()`) ────────── Error in `loadNamespace(x)`: there is no package called 'reshape2' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-Smooth2D.R:2:1 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Failure ('test-eof.R:27:5'): can use differnet engine ─────────────────────── ...[] not equal to EOF(gh ~ lat + lon | date, data = geopotential, n = 1)$left. Column 'gh': Mean relative difference: 2 ── Error ('test-vis-arrow.R:1:1'): (code run outside of `test_that()`) ───────── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-arrow.R:1:1 ── Error ('test-vis-contour2.R:1:1'): (code run outside of `test_that()`) ────── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-contour2.R:1:1 ── Error ('test-vis-contour_fill.R:1:1'): (code run outside of `test_that()`) ── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-contour_fill.R:1:1 ── Error ('test-vis-discretised-scale.R:2:1'): (code run outside of `test_that()`) ── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-discretised-scale.R:2:1 ── Error ('test-vis-geom-relief.R:1:1'): (code run outside of `test_that()`) ─── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-geom-relief.R:1:1 ── Error ('test-vis-guide_colorstrip.R:1:1'): (code run outside of `test_that()`) ── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-guide_colorstrip.R:1:1 ── Error ('test-vis-streamline.R:3:1'): (code run outside of `test_that()`) ──── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-streamline.R:3:1 ── Error ('test-vis-text-contour.R:2:1'): (code run outside of `test_that()`) ── Error in `library(vdiffr)`: there is no package called 'vdiffr' Backtrace: ▆ 1. └─base::library(vdiffr) at test-vis-text-contour.R:2:1 ── Error ('tests.R:20:5'): Water is still water ──────────────────────────────── Error in `check_packages(c("maps"), "MaskLand")`: MaskLand needs packages maps. Install them with: 'install.packages(c("maps"))'. Backtrace: ▆ 1. ├─testthat::expect_equal(MaskLand(120, 14), FALSE) at tests.R:20:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─metR::MaskLand(120, 14) 5. └─metR:::check_packages(c("maps"), "MaskLand") 6. └─metR:::stopf(...) ── Error ('tests.R:27:5'): MaskLand respects boundaries ──────────────────────── Error in `check_packages(c("maps"), "MaskLand")`: MaskLand needs packages maps. Install them with: 'install.packages(c("maps"))'. Backtrace: ▆ 1. ├─testthat::expect_equal(MaskLand(361, 15), MaskLand(1, 15)) at tests.R:27:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─metR::MaskLand(361, 15) 5. └─metR:::check_packages(c("maps"), "MaskLand") 6. └─metR:::stopf(...) ── Error ('tests.R:33:5'): MaskLand respects order ───────────────────────────── Error in `check_packages(c("maps"), "MaskLand")`: MaskLand needs packages maps. Install them with: 'install.packages(c("maps"))'. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at tests.R:33:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─metR::MaskLand(c(120, 360 - 58), c(14, -34)) 5. └─metR:::check_packages(c("maps"), "MaskLand") 6. └─metR:::stopf(...) [ FAIL 23 | WARN 0 | SKIP 2 | PASS 151 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [13s/13s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/data/gannet/ripley/R/packages/tests-Suggests/metR.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:29.90, 197.11 + 12.52