We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5200db3 commit 7131f53Copy full SHA for 7131f53
scripts/allow_ptrace.c
@@ -0,0 +1,6 @@
1
+#include <sys/prctl.h>
2
+
3
+__attribute__((constructor))
4
+static void allow_ptrace(void) {
5
+ prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY);
6
+}
scripts/launch_r.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+export LD_PRELOAD=/workspaces/r-dev-env/scripts/allow_ptrace.so
+# If the first argument is a file, use that as R_BINARY; otherwise default.
+if [ -x "$1" ]; then
+ R_BINARY="$1"
7
+ shift
8
+else
9
+ R_BINARY="/usr/bin/R"
10
+fi
11
12
+# Exec R with all remaining arguments
13
+exec "$R_BINARY" "$@"
0 commit comments