From 0451e5cba4400e3e63e2ce401c9bd16b595608ff Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Thu, 15 May 2025 03:21:28 +0200 Subject: [PATCH] added just for R update --- Justfile | 4 ++++ flake.nix | 2 ++ test.R | 10 ---------- 3 files changed, 6 insertions(+), 10 deletions(-) create mode 100644 Justfile delete mode 100644 test.R diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..5755128 --- /dev/null +++ b/Justfile @@ -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 diff --git a/flake.nix b/flake.nix index ad92ce8..69e0d5f 100644 --- a/flake.nix +++ b/flake.nix @@ -42,6 +42,8 @@ (rWrapper.override { packages = rpkgs; }) + just + wget ]; } ); diff --git a/test.R b/test.R deleted file mode 100644 index 4728467..0000000 --- a/test.R +++ /dev/null @@ -1,10 +0,0 @@ -ls() -library() -library(igraph) -library(R.utils) -library(stats) -library(data.table) -library(fixest) -library(ggplot2) -library(dplyr) -.packages(TRUE) |> sort()