R Under development (unstable) (2024-11-14 r87333 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. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(comtradr) In the last version of comtradr the cache location has been changed, because it was not CRAN compliant. You can: ✔ Migrate the cache and clean old files with `ct_migrate_cache()` ✖ Ignore this warning, a new cache is created automatically. ℹ Delete your old cache manually with: • `rappdirs::user_cache_dir('comtradr') |> list.files(full.names = T) |> file.remove()` and • `rappdirs::user_cache_dir('comtradr_bulk') |> list.files(full.names = T) |> file.remove()` > > test_check("comtradr") 1,1,1[ FAIL 0 | WARN 0 | SKIP 2 | PASS 112 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • any(class(test) %in% c("rlang_error", "error", "try-error")) is TRUE (2): 'test-ct_get_bulk.R:83:3', 'test-ct_get_data.R:96:3' [ FAIL 0 | WARN 0 | SKIP 2 | PASS 112 ] > > library(httptest2) > > .mockPaths('../') > .mockPaths('tests/') > > proc.time() user system elapsed 2.98 0.51 3.79