You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation of r_session, the description libpath argument says
libpath: Library path for the subprocess. By default the same as the current library path. I.e. not necessarily the library path of a fresh R session.)
I wonder if it is possible to keep the library path of a fresh R session instead of propagating from the main session?
My motivation is that I need to start an R session from a specific working directory so that the folder .Rprofile is respected (e.g. renv projects or any other startup customization) so that I can call session$run() with the proper R libpath setup specific to that directory. In this use case, it is best that the spawned R session should behave exactly the same as if the session is a fresh session started from the specific working directory.
The text was updated successfully, but these errors were encountered:
Error in `get_result(output = out, options)`:
! callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed
ℹ See `$stderr` for standard error.
Type .Last.error to see the more details.
Backtrace:
1: stop(cond)
2: throw(new_callr_crash_error(output, killmsg))
3: get_result(output = out, options)
4: r(func, args = args, libpath = libpath, repos = repos, cmdargs = cmdargs,
5: callr::r_vanilla(function() .libPaths(), libpath = character(),
In the documentation of r_session, the description
libpath
argument saysI wonder if it is possible to keep the library path of a fresh R session instead of propagating from the main session?
My motivation is that I need to start an R session from a specific working directory so that the folder
.Rprofile
is respected (e.g.renv
projects or any other startup customization) so that I can callsession$run()
with the proper R libpath setup specific to that directory. In this use case, it is best that the spawned R session should behave exactly the same as if the session is a fresh session started from the specific working directory.The text was updated successfully, but these errors were encountered: