mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 22:40:57 -05:00
Add clarifying comments based on code review feedback
Co-authored-by: dwinkler1 <22460147+dwinkler1@users.noreply.github.com>
This commit is contained in:
parent
496c238a12
commit
cc69aa34f8
3 changed files with 6 additions and 0 deletions
|
|
@ -3,8 +3,11 @@ set -euo pipefail
|
|||
|
||||
echo "🔄 Updating project dependencies..."
|
||||
|
||||
# Fetch latest R version from rstats-on-nix
|
||||
# This command chain: downloads CSV, extracts last line, gets 4th field (date), removes quotes
|
||||
RVER=$( wget -qO- 'https://raw.githubusercontent.com/ropensci/rix/refs/heads/main/inst/extdata/available_df.csv' | tail -n 1 | head -n 1 | cut -d',' -f4 | tr -d '"' ) &&\
|
||||
|
||||
# Update rixpkgs date in flake.nix
|
||||
sed -i "s|rixpkgs.url = \"github:rstats-on-nix/nixpkgs/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\";|rixpkgs.url = \"github:rstats-on-nix/nixpkgs/$RVER\";|" flake.nix
|
||||
echo "✅ R date is $RVER"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue