-
Notifications
You must be signed in to change notification settings - Fork 3
Fix cran #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cran #99
Changes from 5 commits
7d1190c
10376ed
8a7c4db
8c3ea62
61880ec
0c0f5d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,5 +34,6 @@ | |
| ^\.jupyter$ | ||
| ^[.]?air[.]toml$ | ||
| ^\.vscode$ | ||
| ^\.devcontainer$ | ||
| ^\.sync$ | ||
| ^\.claude$ | ||
| ^\.devcontainer$ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "rJavaEnv Dev Container", | ||
| "image": "mcr.microsoft.com/devcontainers/r:latest", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/common-utils:2": {} | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "quarto.quarto", | ||
| "Posit.air-vscode", | ||
| "REditorSupport.r" | ||
| ] | ||
| } | ||
| }, | ||
| "postCreateCommand": "bash .devcontainer/setup.sh", | ||
| "remoteEnv": { | ||
| "PATH": "${containerEnv:PATH}:/home/vscode/.local/bin" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/usr/bin/env Rscript | ||
|
|
||
| # Ensure remotes is installed | ||
| if (!requireNamespace("remotes", quietly = TRUE)) { | ||
| install.packages("remotes") | ||
| } | ||
|
|
||
| # Get dependencies from DESCRIPTION in the current directory | ||
| deps <- remotes::dev_package_deps(dependencies = TRUE) | ||
|
|
||
| # Filter out rJava to ensure no Java is installed | ||
| # deps is a data.frame with class "package_deps" | ||
| deps <- deps[deps$package != "rJava", ] | ||
|
|
||
| # Install/Update the selected packages | ||
| # The update() method for package_deps respects version requirements | ||
| remotes::update(deps, upgrade = "always") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # Configuration | ||
| AIR_VERSION="0.8.0" | ||
| INSTALL_DIR="$HOME/.local/bin" | ||
| mkdir -p "$INSTALL_DIR" | ||
|
|
||
| # Detect Architecture | ||
| ARCH=$(uname -m) | ||
| if [ "$ARCH" = "x86_64" ]; then | ||
| AIR_ARCH="x86_64" | ||
| elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then | ||
| AIR_ARCH="aarch64" | ||
| else | ||
| echo "Unsupported architecture: $ARCH" | ||
| exit 1 | ||
| fi | ||
|
|
||
| PLATFORM="unknown-linux-gnu" | ||
| FILENAME="air-${AIR_ARCH}-${PLATFORM}.tar.gz" | ||
| URL="https://github.com/posit-dev/air/releases/download/${AIR_VERSION}/${FILENAME}" | ||
|
|
||
| echo "Installing Posit Air CLI version ${AIR_VERSION} for ${AIR_ARCH}..." | ||
|
|
||
| # Download and install | ||
| # We use a temporary directory to ensure clean cleanup | ||
| TMP_DIR=$(mktemp -d) | ||
| curl -LsSf "$URL" -o "${TMP_DIR}/${FILENAME}" | ||
| tar -xzf "${TMP_DIR}/${FILENAME}" -C "$TMP_DIR" | ||
| mv "${TMP_DIR}/air" "$INSTALL_DIR/air" | ||
| rm -rf "$TMP_DIR" | ||
|
|
||
| # Ensure air is on PATH for the remainder of this setup script. | ||
| export PATH="$INSTALL_DIR:$PATH" | ||
|
|
||
| # Verify Air CLI installation | ||
| if ! command -v air &> /dev/null; then | ||
| echo "Error: Air CLI failed to install or is not in PATH." | ||
| exit 1 | ||
| fi | ||
| echo "Air CLI installed successfully: $(air --version)" | ||
|
|
||
| # Install R dependencies | ||
| echo "Installing R dependencies (excluding rJava)..." | ||
| Rscript .devcontainer/setup.R | ||
|
|
||
| echo "Setup complete!" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.