Skip to content

Commit

Permalink
binary paths for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
edavidaja committed Nov 10, 2023
1 parent 8217d49 commit 3f84845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
r_version := "4.2.3"
BINARY_PATH := if os() == "linux" { "/__linux__/jammy"} else { "" }

default:
just --list
Expand All @@ -8,7 +9,7 @@ bootstrap:
if [ ! -d {{invocation_directory()}}/renv/ ]; then rig run -r {{r_version}} -e "renv::init(project = '{{invocation_directory()}}', repos = 'https://p3m.dev/cran/latest')"; fi

restore:
if [ -f {{invocation_directory()}}/renv.lock ]; then rig run -r {{r_version}} -e "renv::restore(repos = 'https://p3m.dev/cran/latest')"; fi
if [ -f {{invocation_directory()}}/renv.lock ]; then rig run -r {{r_version}} -e "renv::restore(repos = 'https://p3m.dev/cran{{BINARY_PATH}}/latest')"; fi

# remove renv from working directory
clean:
Expand Down

0 comments on commit 3f84845

Please sign in to comment.