From d1903c329611d5d6c4510236984513a4a663e327 Mon Sep 17 00:00:00 2001 From: sorinvoicu <61691256+sorinvoicu@users.noreply.github.com> Date: Thu, 11 Apr 2024 08:57:18 +0000 Subject: [PATCH] use package from posit --- scripts/install_sys_deps.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/install_sys_deps.sh b/scripts/install_sys_deps.sh index d48487f..c0f74e5 100755 --- a/scripts/install_sys_deps.sh +++ b/scripts/install_sys_deps.sh @@ -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