Last updated on 2025-07-21 23:51:12 CEST.
Package | ERROR | OK |
---|---|---|
gofigR | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # 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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(gofigR)
>
> test_check("gofigR")
Linking to ImageMagick 6.9.12.93
Enabled features: cairo, fontconfig, freetype, heic, lcms, pango, raw, rsvg, webp
Disabled features: fftw, ghostscript, x11
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_integration.R:12:1'): (code run outside of `test_that()`) ──────
<std::runtime_error/C++Error/error/condition>
Error in `(function (size, options, memory_format)
{
.Call(`_torch_cpp_torch_namespace_empty_size_IntArrayRef`,
size, options, memory_format)
})(size = list(64, 3, 7, 7), options = list(dtype = NULL, layout = NULL,
device = NULL, requires_grad = FALSE), memory_format = NULL)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
Backtrace:
▆
1. └─torchvision::model_resnet18(pretrained = TRUE) at test_integration.R:12:1
2. └─torchvision:::.resnet(...)
3. └─torch (local) resnet(block, layers, ...)
4. └─Module$new(...)
5. └─torchvision (local) initialize(...)
6. └─torch::nn_conv2d(...)
7. └─Module$new(...)
8. └─torch (local) initialize(...)
9. └─super$initialize(...)
10. ├─torch::nn_parameter(...)
11. │ └─torch:::is_torch_tensor(x)
12. └─torch::torch_empty(out_channels, in_channels%/%groups, !!!kernel_size)
13. ├─base::do.call(.torch_empty, args)
14. └─torch (local) `<fn>`(options = `<named list>`, size = `<list>`)
15. └─torch:::call_c_function(...)
16. └─torch:::do_call(f, args)
17. ├─base::do.call(fun, args)
18. └─torch (local) `<fn>`(size = `<list>`, options = `<named list>`, memory_format = NULL)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
Error: Test failures
Execution halted
Flavors: r-release-macos-x86_64, r-oldrel-macos-x86_64