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()