It tries to mimic a fresh R installation. In particular:
No library path setting.
No CRAN(-like) repository is set.
The system and user profiles are not run.
r_vanilla(func, args = list(), libpath = character(), repos = c(CRAN = "@CRAN@"), cmdargs = "--slave", system_profile = FALSE, user_profile = FALSE, env = character(), ...)
Function object to call in the new R process.
The function should be self-contained and only refer to
other functions and use variables explicitly from other packages
does not work, because
works just fine.
Arguments to pass to the function. Must be a list.
The library path.
The repos option. If
Command line arguments to pass to the R process.
Whether to use the system profile file.
Whether to use the user's profile file.
Environment variables to set for the child process.
Additional arguments are passed to