Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update some scripts to install R packages from source, on arm64 images #195

Merged
merged 3 commits into from
Jul 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/install_R.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ CRAN=${CRAN:-https://cran.r-project.org}
## mechanism to force source installs if we're using RSPM
CRAN_SOURCE=${CRAN/"__linux__/$UBUNTU_VERSION/"/""}

## source install if using RSPM and arm64 image
if [ "$(uname -m)" = "aarch64" ]; then
CRAN=$CRAN_SOURCE
fi

export DEBIAN_FRONTEND=noninteractive

# Set up and install R
Expand Down
6 changes: 3 additions & 3 deletions scripts/install_tidyverse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ apt-get update -qq && apt-get -y --no-install-recommends install \
unixodbc-dev && \
rm -rf /var/lib/apt/lists/*

install2.r --error --skipinstalled -r $CRAN -n $NCPUS \
install2.r --error --skipinstalled -n $NCPUS \
tidyverse \
devtools \
rmarkdown \
Expand All @@ -27,7 +27,7 @@ install2.r --error --skipinstalled -r $CRAN -n $NCPUS \
gert

## dplyr database backends
install2.r --error --skipinstalled -r $CRAN -n $NCPUS \
install2.r --error --skipinstalled -n $NCPUS \
arrow \
dbplyr \
DBI \
Expand All @@ -40,6 +40,6 @@ install2.r --error --skipinstalled -r $CRAN -n $NCPUS \
fst

## a bridge to far? -- brings in another 60 packages
# install2.r --error --skipinstalled -r $CRAN -n $NCPUS tidymodels
# install2.r --error --skipinstalled -n $NCPUS tidymodels

rm -rf /tmp/downloaded_packages
6 changes: 3 additions & 3 deletions scripts/install_verse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fi
# So: we can build the redland package bindings and then swap back to libcurl-openssl-dev... (ick)
# explicitly install runtime library sub-deps of librdf0-dev so they are not auto-removed.
apt-get install -y librdf0-dev
install2.r --error --skipinstalled -r $CRAN redland
install2.r --error --skipinstalled redland
apt-get install -y \
libcurl4-openssl-dev \
libxslt-dev \
Expand All @@ -70,8 +70,8 @@ wget "https://travis-bin.yihui.name/texlive-local.deb" \
## Install texlive
/rocker_scripts/install_texlive.sh

install2.r --error -r $CRAN --skipinstalled tinytex
install2.r --error --deps TRUE -r $CRAN --skipinstalled \
install2.r --error --skipinstalled tinytex
install2.r --error --deps TRUE --skipinstalled \
blogdown bookdown rticles rmdshower rJava xaringan

rm -rf /tmp/downloaded_packages
Expand Down