Please note that the code errors when executing the last line of the code block above.
Error happens in Julia.
MethodError: no method matching size(::ODEProblem{Float64, Tuple{Float64, Float64}, false, SciMLBase.NullParameters, ODEFunction{false, SciMLBase.AutoSpecialize, RCall.RFunction{RObject{ClosSxp}}, UniformScaling{Bool}, Nothing, Nothing, Nothing,
Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing}}, Base.Pairs{Symbol, Union{}, Tuple{}, @NamedTuple{}}, SciMLBase.StandardODEProblem})
Closest candidates are:
size(!Matched::BitVector)
@ Base bitarray.jl:104
size(!Matched::BitVector, !Matched::Integer)
@ Base bitarray.jl:107
size(!Matched::Base.ExceptionStack)
@ Base errorshow.jl:1018
...
Stacktrace:
[1] dim(x::ODEProblem{Float64, Tuple{Float64, Float64}, false, SciMLBase.NullParameters, ODEFunction{false, SciMLBase.AutoSpecialize, RCall.RFunction{RObject{ClosSxp}}, UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing,
Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing}}, @Kwargs{}, SciMLBase.StandardODEProblem})
@ Main.JuliaCall C:\Users\boaretti\AppData\Local\Programs\R\R-4.3.2\library\JuliaCall\julia\dispatch.jl:78
[2] simple_call(fname::String, args::ODEProblem{Float64, Tuple{Float64, Float64}, false, SciMLBase.NullParameters, ODEFunction{false, SciMLBase.AutoSpecialize, RCall.RFunction{RObject{ClosSxp}}, UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing}}, @Kwargs{}, SciMLBase.StandardODEProblem}; kwargs::@Kwargs{})
@ Main.JuliaCall C:\Users\boaretti\AppData\Local\Programs\R\R-4.3.2\library\JuliaCall\julia\interface1.jl:11
[3] simple_call(fname::String, args::ODEProblem{Float64, Tuple{Float64, Float64}, false, SciMLBase.NullParameters, ODEFunction{false, SciMLBase.AutoSpecialize, RCall.RFunction{RObject{ClosSxp}}, UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing}}, @Kwargs{}, SciMLBase.StandardODEProblem})
@ Main.JuliaCall C:\Users\boaretti\AppData\Local\Programs\R\R-4.3.2\library\JuliaCall\julia\interface1.jl:1
[4] julia_extptr_callback(p::Ptr{ListSxp})
> @ RCall C:\Users\boaretti\.julia\packages\RCall\gOwEW\src\callback.jl:56
Describe the bug 🐞
It is not possible to define the
ODEProblemin R withdiffeqras outlined in the examples of the package using the terminal on VSCode, while it works using the Git Bash standalone terminal and on RStudio.Expected behavior
The
ODEProblemin R withdiffeqrcan be defined as the examples of the package regardless of the terminal used.Minimal Reproducible Example 👇
Please note that the code errors when executing the last line of the code block above.
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)versioninfo()Additional context
Output of
sessionInfo()in R: