Open sje30 opened 2 years ago
Another example:
require(JuliaCall)
Loading required package: JuliaCall
> julia_eval("subtypes(Number)")
Julia version 1.8.2 at location /opt/homebrew/Cellar/julia/1.8.2/bin will be used.
Loading setup script for JuliaCall...
Finish loading setup script for JuliaCall.
Error: Error happens in Julia.
UndefVarError: subtypes not defined
Stacktrace:
[1] top-level scope
@ none:1
[2] eval
@ ./boot.jl:368 [inlined]
[3] eval_string(x::String)
@ Main.JuliaCall ~/NOBACKUP/RLIB/JuliaCall/julia/setup.jl:203
[4] docall(call1::Ptr{Nothing})
@ Main.JuliaCall ~/NOBACKUP/RLIB/JuliaCall/julia/setup.jl:0
>
whereas in Julia:
julia> subtypes(Number)
2-element Vector{Any}:
Complex
Real
This still seems to be a problem with Julia 1.9.0 on Mac.
Session Info
```r sessionInfo() R version 4.2.1 (2022-06-23) Platform: aarch64-apple-darwin21.6.0 (64-bit) Running under: macOS Monterey 12.6 Matrix products: default BLAS: /opt/homebrew/Cellar/openblas/0.3.21/lib/libopenblasp-r0.3.21.dylib LAPACK: /opt/homebrew/Cellar/r/4.2.1_4/lib/R/lib/libRlapack.dylib locale: [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] JuliaCall_0.17.5 loaded via a namespace (and not attached): [1] compiler_4.2.1 tools_4.2.1 Rcpp_1.0.8.3 knitr_1.39 xfun_0.31 > ```Here is a reproducible example:
If I drop into the console, the function works fine.