File tree Expand file tree Collapse file tree 4 files changed +3
-19
lines changed
Expand file tree Collapse file tree 4 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 1717 "r.plot.useHttpgd" : true ,
1818 "r.rterm.linux" : " /workspaces/r-dev-env/scripts/launch_r.sh" ,
1919 "r.rpath.linux" : " /usr/bin/R" ,
20- "terminal.integrated.env.linux" : {
21- "R_RPATH_LINUX" : " ${config:r.rpath.linux}"
22- },
2320 "terminal.integrated.sendKeybindingsToShell" : true ,
2421 "svn.multipleFolders.enabled" : true ,
2522 "workbench.editorAssociations" : {
Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
2- # Preload helper for ptrace
3- export LD_PRELOAD=" $( dirname " $0 " ) /allow_ptrace.so"
4-
5- # VS Code sets the env var R_RPATH_LINUX to the path from r.rpath.linux
6- if [ -n " ${R_RPATH_LINUX:- } " ] && [ -x " $R_RPATH_LINUX " ]; then
7- R_BINARY=" $R_RPATH_LINUX "
8- else
9- R_BINARY=" /usr/bin/R"
10- fi
11-
12- exec " $R_BINARY " " $@ "
1+ #! /bin/bash
2+ export LD_PRELOAD=/workspaces/r-dev-env/scripts/allow_ptrace.so
3+ exec /usr/bin/R " $@ "
Original file line number Diff line number Diff line change 3939# Run the main function
4040local_script
4141
42- # Remove the .vscode/settings.json file if it exists so that
43- # it does not interfere with the devcontainer.json
44- rm -f " $WORK_DIR /.vscode/settings.json"
45-
4642# 1. Build the ptrace helper library
4743gcc -shared -fPIC -o " $SCRIPTS_DIR /allow_ptrace.so" " $SCRIPTS_DIR /allow_ptrace.c"
4844
You can’t perform that action at this time.
0 commit comments