Running 'testthat.R' [42s]
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_01_18_01_50_00_9286\jl_Oy2pB2`
      Updating registry at `C:\Users\CRAN\.julia\registries\General.toml`
     Resolving package versions...
     Installed NaNMath ──────────── v1.0.3
     Installed PtrArrays ────────── v1.3.0
  Timing stopped at: 0.01 0 29.97
  [ 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: Error when installing package Distributions:
  IOError: rm("C:\\Users\\CRAN\\.julia\\packages\\Distributions\\tQhJE\\src\\samplers"): directory not empty (ENOTEMPTY)
  Stacktrace:
   [1] uv_error
     @ .\libuv.jl:97 [inlined]
   [2] rm(path::String; force::Bool, recursive::Bool)
     @ Base.Filesystem .\file.jl:306
   [3] rm(path::String; force::Bool, recursive::Bool) (repeats 2 times)
     @ Base.Filesystem .\file.jl:294
   [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] install_archive(urls::Vector{Pair{String, Bool}}, hash::Base.SHA1, version_path::String; io::Base.PipeEndpoint)
     @ Pkg.Operations C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:563
   [7] macro expansion
     @ C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:761 [inlined]
   [8] (::Pkg.Operations.var"#46#51"{Bool, Pkg.Types.Context, Tuple{SubString{String}, Dict{Base.UUID, Base.SHA1}}, Channel{Any}, Channel{NamedTuple{(:pkg, :urls, :path), Tuple{Pkg.Types.PackageEntry, Set{String}, String}}}})()
     @ Pkg.Operations .\task.jl:484
  Stacktrace:
    [1] pkgerror(::String, ::Vararg{String})
      @ Pkg.Types C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Types.jl:67
    [2] macro expansion
      @ C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:783 [inlined]
    [3] macro expansion
      @ .\task.jl:454 [inlined]
    [4] download_source(ctx::Pkg.Types.Context; readonly::Bool)
      @ Pkg.Operations C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:724
    [5] download_source
      @ C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:700 [inlined]
    [6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
      @ Pkg.Operations C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1278
    [7] 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:275
    [8] 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
    [9] add(pkgs::Vector{Pkg.Types.PackageSpec})
      @ Pkg.API C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
   [10] #add#27
      @ C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
   [11] add(pkgs::Vector{String})
      @ Pkg.API C:\PROGRA~1\Julia\share\julia\stdlib\v1.8\Pkg\src\API.jl:144
   [12] top-level scope
      @ string:4
   [13] eval
      @ .\boot.jl:368 [inlined]
   [14] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
      @ Base .\loading.jl:1428
   [15] include_string (repeats 2 times)
      @ .\loading.jl:1438 [inlined]
   [16] mainevalcmd(str::String)
      @ Main.RConnector D:\RCompile\CRANpkg\lib\4.3\JuliaConnectoR\Julia\evaluating.jl:150
   [17] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
      @ Base .\essentials.jl:729
   [18] invokelatest(::Any, ::Any, ::Vararg{Any})
      @ Base .\essentials.jl:726
   [19] evaluate!(call::Main.RConnector.Call, communicator::Main.RConnector.CommunicatoR{Sockets.TCPSocket})
      @ Main.RConnector D:\RCompile\CRANpkg\lib\4.3\JuliaConnectoR\Julia\evaluating.jl:67
   [20] 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
   [21] serve_repl(sock::Sockets.TCPSocket)
      @ Main.RConnector D:\RCompile\CRANpkg\lib\4.3\JuliaConnectoR\Julia\communicating.jl:185
   [22] (::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