I wasn't sure whether to open this in RCall.jl or in julia-vscode. Since the segfault only happens within VSCode's Julia REPL (or a connected terminal), let's start here. To reproduce,
using Pkg
Pkg.add("RCall")
using RCall
R"install.packages('sf')"
R"library(sf)"
makes the REPL in VSCode disappear. There is no server trace info. If I open an external REPL and connect it, I can see that there is a segfault when Julia ends. This runs smoothly if I run in a REPL independent of VSCode (not even "connected" to VSCode).
I am on OSX, with Julia 1.6, R 4.1.0. Please let me know if I can provide any more debugging info.