I am using Julia 1.11.1 and whenever I try to install RCall, Julia would crash with the following error/log (this also happens with some recent version of Julia). Any suggestions on how to fix it are greatly appreciated. Thanks in advance!
julia> using RCall
│ Package RCall not found, but a package named RCall is available from a registry.
│ Install package?
│ (@v1.11) pkg> add RCall
└ (y/n/o) [y]: y
Resolving package versions…
Installed StatsModels ─── v0.7.4
Installed ShiftedArrays ─ v2.0.0
Installed WinReg ──────── v1.0.0
Installed RCall ───────── v0.14.6
Updating/opt/julia/1.10/local/environments/v1.11/Project.toml
[6f49c342] + RCall v0.14.6
Updating/opt/julia/1.10/local/environments/v1.11/Manifest.toml
[324d7699] + CategoricalArrays v0.10.8
[6f49c342] + RCall v0.14.6
[1277b4bf] + ShiftedArrays v2.0.0
[3eaba693] + StatsModels v0.7.4
[1b915085] + WinReg v1.0.0
Building RCall →/opt/julia/1.10/local/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/db17ec90d9f904b79e7877a764fdf95ff5c5f315/build.log
Precompiling RCall…
7 dependencies successfully precompiled in 2 seconds. 87 already precompiled.
[ Info: Precompiling RCall [6f49c342-dc21-5d91-9882-a32aef131414][2675740] signal 11 (1): Segmentation fault
in expression starting at REPL[7]:1
Rf_install at /lib/libR.so (unknown line)
R_initMethodDispatch at /tmp/R-4.2.2/src/library/methods/src/methods_list_dispatch.c:159
R_initMethodDispatch at /tmp/R-4.2.2/src/library/methods/src/methods_list_dispatch.c:156
R_doDotCall at /tmp/R-4.2.2/src/main/dotcode.c:601
bcEval at /tmp/R-4.2.2/src/main/eval.c:7692
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
forcePromise at /tmp/R-4.2.2/src/main/eval.c:568
FORCE_PROMISE at /tmp/R-4.2.2/src/main/eval.c:5157 [inlined]
getvar at /tmp/R-4.2.2/src/main/eval.c:5198
bcEval at /tmp/R-4.2.2/src/main/eval.c:6888
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
bcEval at /tmp/R-4.2.2/src/main/eval.c:7104
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:748
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:871
Rf_evalList at /tmp/R-4.2.2/src/main/eval.c:3089
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:842
do_if at /tmp/R-4.2.2/src/main/eval.c:2247
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:823
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:823
do_begin at /tmp/R-4.2.2/src/main/eval.c:2539
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:823
R_execClosure at /tmp/R-4.2.2/src/main/eval.c:1918
Rf_applyClosure at /tmp/R-4.2.2/src/main/eval.c:1844
Rf_eval at /tmp/R-4.2.2/src/main/eval.c:871
setup_Rmainloop at /tmp/R-4.2.2/src/main/main.c:1004
initEmbeddedR at /opt/julia/1.10/local/packages/RCall/0ggIQ/src/setup.jl:151
init at /opt/julia/1.10/local/packages/RCall/0ggIQ/src/setup.jl:192
jfptr___init___3338 at /opt/julia/1.10/local/compiled/v1.11/RCall/8GFyb_1fnZC.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
jl_module_run_initializer at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:76
run_module_init at ./loading.jl:1336
register_restored_modules at ./loading.jl:1324
#_include_from_serialized#1066 at ./loading.jl:1213
_include_from_serialized at ./loading.jl:1169 [inlined]
_tryrequire_from_serialized at ./loading.jl:1902
_require at ./loading.jl:2507
__require_prelocked at ./loading.jl:2315
jfptr___require_prelocked_69877.1 at /home/z3243864/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
jl_f__call_in_world at /cache/build/builder-demeter6-6/julialang/julia-master/src/builtins.c:894
#invoke_in_world#3 at ./essentials.jl:1089 [inlined]
invoke_in_world at ./essentials.jl:1086 [inlined]
_require_prelocked at ./loading.jl:2302
macro expansion at ./loading.jl:2241 [inlined]
macro expansion at ./lock.jl:273 [inlined]
__require at ./loading.jl:2198
jfptr___require_69814.1 at /home/z3243864/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
jl_f__call_in_world at /cache/build/builder-demeter6-6/julialang/julia-master/src/builtins.c:894
#invoke_in_world#3 at ./essentials.jl:1089 [inlined]
invoke_in_world at ./essentials.jl:1086 [inlined]
require at ./loading.jl:2191
jfptr_require_69803.1 at /home/z3243864/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
call_require at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:486 [inlined]
eval_import_path at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:523
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:759
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:994
eval at ./boot.jl:430 [inlined]
eval_user_input at /cache/build/builder-demeter6-6/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:245
repl_backend_loop at /cache/build/builder-demeter6-6/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:342
#start_repl_backend#59 at /cache/build/builder-demeter6-6/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:327
start_repl_backend at /cache/build/builder-demeter6-6/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:324
#run_repl#72 at /cache/build/builder-demeter6-6/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:483
run_repl at /cache/build/builder-demeter6-6/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:469
jfptr_run_repl_10088 at /home/z3243864/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/share/julia/compiled/v1.11/REPL/u0gqU_GYsA8.so (unknown line)
#1139 at ./client.jl:446
jfptr_YY.1139_14649 at /home/z3243864/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/share/julia/compiled/v1.11/REPL/u0gqU_GYsA8.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
jl_f__call_latest at /cache/build/builder-demeter6-6/julialang/julia-master/src/builtins.c:875
#invokelatest#2 at ./essentials.jl:1055 [inlined]
invokelatest at ./essentials.jl:1052 [inlined]
run_main_repl at ./client.jl:430
repl_main at ./client.jl:567 [inlined]
_start at ./client.jl:541
jfptr__start_72144.1 at /home/z3243864/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
true_main at /cache/build/builder-demeter6-6/julialang/julia-master/src/jlapi.c:900
jl_repl_entrypoint at /cache/build/builder-demeter6-6/julialang/julia-master/src/jlapi.c:1059
main at /cache/build/builder-demeter6-6/julialang/julia-master/cli/loader_exe.c:58
unknown function (ip: 0x7b1141e29d8f)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8)
Allocations: 34571251 (Pool: 34566386; Big: 4865); GC: 56
Segmentation fault (core dumped)