Skip to content

Commit

Permalink
use package from posit
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinvoicu committed Apr 11, 2024
1 parent 553f5e8 commit d1903c3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/install_sys_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ apt-get autoclean -y
rm -rf /var/lib/apt/lists/*


# Install rig
curl -Ls https://github.com/r-lib/rig/releases/download/latest/rig-linux-$(arch)-latest.tar.gz | tar xz -C /usr/local
rig add ${R_VERSION} --without-p3m --without-cran-mirror --without-pak
# # Install rig
# curl -Ls https://github.com/r-lib/rig/releases/download/latest/rig-linux-$(arch)-latest.tar.gz | tar xz -C /usr/local
# rig add ${R_VERSION} --without-p3m --without-cran-mirror --without-pak

curl -O https://cdn.posit.co/r/ubuntu-2204/pkgs/r-${R_VERSION}_1_amd64.deb
apt install gdebi-core
gdebi r-${R_VERSION}_1_amd64.deb

echo "options(repos = c(CRAN = 'https://packagemanager.posit.co/cran/__linux__/jammy/${CRAN_DATE}'))" >> /opt/R/${R_VERSION}/lib/R/etc/Rprofile.site

# Install quarto
Expand Down

0 comments on commit d1903c3

Please sign in to comment.