Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions vscode/scripts/install-vscode-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ for extension in "${base_extensions[@]}"; do
install_extension $extension
done


# Python-specific configuration

python_extensions=(
"ms-python.python"
"ms-python.flake8"
Expand All @@ -57,12 +59,18 @@ if command -v python &> /dev/null; then
jq --arg pythonPath "$python_path" '.["python.defaultInterpreterPath"] = $pythonPath' ${REMOTE_CONFIG_DIR}/settings.json > tmp.json && mv tmp.json ${REMOTE_CONFIG_DIR}/settings.json
fi


# R-specific configuration

# Install arf as R console
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/eitsupi/arf/releases/latest/download/arf-console-installer.sh | sh

r_extensions=(
"reditorsupport.r"
"REditorSupport.r"
"RDebugger.r-debugger"
"Posit.air-vscode"
)

if command -v R &> /dev/null; then
# Install R kernel for jupyter notebooks
if command -v pip &>/dev/null; then
Expand All @@ -77,15 +85,18 @@ if command -v R &> /dev/null; then
for extension in "${r_extensions[@]}"; do
install_extension $extension
done
R -e "install.packages(c('remotes', 'languageserver', 'rmarkdown', 'httpgd'))"
R -e "install.packages(c('remotes', 'languageserver', 'rmarkdown', 'jgd'))"
R -e "install.packages('sess', repos = c('https://reditorsupport.r-universe.dev', getOption('repos')))"
R -e "install.packages('vscDebugger', repos = c('https://manuelhentschel.r-universe.dev', getOption('repos')))"
fi


# Julia-specific configuration
if command -v julia &> /dev/null; then
install_extension "julialang.language-julia"
fi


# Quarto-specific configuration
if command -v quarto &> /dev/null; then
install_extension "quarto.quarto"
Expand Down
5 changes: 4 additions & 1 deletion vscode/settings/Remote.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"jupyter.kernels.excludePythonEnvironments": [
"/usr/bin/python3",
"/bin/python3"
]
],
"r.consolePath": "${userHome}/.cargo/bin/arf",
"r.bracketedPaste": true,
"r.plot.backend": "jgd"
}
2 changes: 1 addition & 1 deletion vscode/settings/User.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"security.workspace.trust.enabled": false,
"security.workspace.trust.startupPrompt": "never",
"terminal.integrated.inheritEnv": false,
"git.defaultCloneDirectory": "~/work",
"git.defaultCloneDirectory": "${userHome}/work",
"python.testing.pytestEnabled": true,
"flake8.args": [
"--max-line-length=100"
Expand Down
Loading