added just for R update

This commit is contained in:
Daniel Winkler 2025-05-15 03:21:28 +02:00
commit 0451e5cba4
No known key found for this signature in database
3 changed files with 6 additions and 10 deletions

4
Justfile Normal file
View file

@ -0,0 +1,4 @@
rverurl := 'https://raw.githubusercontent.com/ropensci/rix/refs/heads/main/inst/extdata/available_df.csv'
update-r-version:
RVER=$( wget -qO- {{rverurl}} | tail -n 2 | head -n 1 | cut -d',' -f4 | tr -d '"' ) &&\
sed -i "s|rixpkgs.url = \"https://github.com/rstats-on-nix/nixpkgs/archive/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\.tar\.gz\";|rixpkgs.url = \"https://github.com/rstats-on-nix/nixpkgs/archive/$RVER.tar.gz\";|" flake.nix