Running 'testthat.R' [37s]
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(jlme)
  > 
  > test_check("jlme")
  Starting Julia ...
  Connecting to Julia TCP server at localhost:11980 ...
  [1] 11980
  Julia version 1.8.0 detected.
  No active Julia connection. Please call `jlme_setup()`.
  [1] FALSE
                                  julia 
  "C:\\PROGRA~1\\Julia\\bin\\julia.exe" 
  Starting Julia (v1.8.0) ...
    Activating new project at `D:\temp\2025_02_08_01_50_00_3345\jl_91c3ti`
      Updating registry at `C:\Users\CRAN\.julia\registries\General.toml`
  Timing stopped at: 0.02 0.07 18.1
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 14 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-model.R:11:3'): (code run outside of `test_that()`) ────────────
  Error: Evaluation in Julia failed.
  Original Julia error message:
  LoadError: IOError: unlink("C:\\Users\\CRAN\\.julia\\registries\\General.tar.gz"): resource busy or locked (EBUSY)
  Stacktrace:
    [1] uv_error
      @ .\libuv.jl:97 [inlined]
    [2] unlink(p::String)
      @ Base.Filesystem .\file.jl:972
    [3] rm(path::String; force::Bool, recursive::Bool)
      @ Base.Filesystem .\file.jl:283
    [4] checkfor_mv_cp_cptree(src::String, dst::String, txt::String; force::Bool)
      @ Base.Filesystem .\file.jl:330
    [5] #mv#15
      @ .\file.jl:425 [inlined]
    [6] update(regs::Vector{Pkg.Registry.RegistrySpec}; io::Base.PipeEndpoint, force::Bool)
      @ Pkg.Registry C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Registry\Registry.jl:376
    [7] update_registries(ctx::Pkg.Types.Context; force::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
      @ Pkg.Operations C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1172
    [8] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.PipeEndpoint, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.PipeEndpoint}}})
      @ Pkg.API C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:259
    [9] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.PipeEndpoint, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
      @ Pkg.API C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
   [10] add(pkgs::Vector{Pkg.Types.PackageSpec})
      @ Pkg.API C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
   [11] #add#27
      @ C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
   [12] add(pkgs::Vector{String})
      @ Pkg.API C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:144
   [13] top-level scope
      @ string:4
   [14] eval
      @ .\boot.jl:368 [inlined]
   [15] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
      @ Base .\loading.jl:1428
   [16] include_string (repeats 2 times)
      @ .\loading.jl:1438 [inlined]
   [17] mainevalcmd(str::String)
      @ Main.RConnector D:\RCompile\CRANpkg\lib\4.3\JuliaConnectoR\Julia\evaluating.jl:150
   [18] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
      @ Base .\essentials.jl:729
   [19] invokelatest(::Any, ::Any, ::Vararg{Any})
      @ Base .\essentials.jl:726
   [20] evaluate!(call::Main.RConnector.Call, communicator::Main.RConnector.CommunicatoR{Sockets.TCPSocket})
      @ Main.RConnector D:\RCompile\CRANpkg\lib\4.3\JuliaConnectoR\Julia\evaluating.jl:67
   [21] evaluate_checked!(call::Main.RConnector.Call, communicator::Main.RConnector.CommunicatoR{Sockets.TCPSocket})
      @ Main.RConnector D:\RCompile\CRANpkg\lib\4.3\JuliaConnectoR\Julia\evaluating.jl:55
   [22] serve_repl(sock::Sockets.TCPSocket)
      @ Main.RConnector D:\RCompile\CRANpkg\lib\4.3\JuliaConnectoR\Julia\communicating.jl:185
   [23] (::Main.RConnector.var"#3#5")()
      @ Main.RConnector .\task.jl:484
  in expression starting at string:4
  Backtrace:
       ▆
    1. ├─base::print(...) at test-model.R:10:1
    2. ├─base::system.time(...)
    3. └─jlme::jlme_setup(restart = TRUE, verbose = TRUE) at test-model.R:11:3
    4.   ├─base::do.call(.jlme_setup, params)
    5.   └─jlme (local) `<fn>`(add = NULL, threads = NULL, verbose = TRUE)
    6.     └─jlme:::init_proj(add = add, verbose = verbose)
    7.       └─jlme::jl(...)
    8.         └─JuliaConnectoR::juliaEval(s_interpolated)
    9.           └─JuliaConnectoR::juliaCall("RConnector.mainevalcmd", expr)
   10.             ├─base::tryCatch(...)
   11.             │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   12.             │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.             │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   14.             └─JuliaConnectoR:::doCallJulia(funName, jlargs)
   15.               └─JuliaConnectoR:::handleCallbacksAndOutput()
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted