Skip to contents

Locates bwrap (bubblewrap) and creates a wrapper shell script that launches R inside a fully-isolated sandbox. The wrapper can be passed to callr::r_session_options() via the arch parameter.

Usage

build_sandbox_linux(socket_path, r_home, limits = NULL)

Arguments

socket_path

Path to the UDS socket

r_home

Path to the R installation

limits

Optional named list of resource limits (see generate_ulimit_commands())

Value

A sandbox config list (see build_sandbox_config())