Skip to content

Commit

Permalink
Update bspm settings for CI use (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel authored Mar 31, 2023
1 parent 552e08b commit e74fa45
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/r-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ BootstrapLinux() {
# https://stat.ethz.ch/pipermail/r-help//2012-September/335676.html
# May 2020: we also need devscripts for checkbashism
# Sep 2020: add bspm, remotes
Retry sudo apt-get install -y --no-install-recommends r-base-dev r-recommended qpdf devscripts r-cran-remotes
Retry sudo apt-get install -y --no-install-recommends r-base-dev r-recommended qpdf devscripts r-cran-bspm r-cran-remotes

#sudo cp -ax /usr/lib/R/site-library/littler/examples/{build.r,check.r,install*.r,update.r} /usr/local/bin
## for now also from littler from GH
Expand Down Expand Up @@ -192,11 +192,8 @@ BootstrapLinuxOptions() {
# InstallPandoc 'linux/debian/x86_64'
#fi
if [[ "${USE_BSPM}" != "FALSE" ]]; then
#sudo Rscript --vanilla -e 'install.packages("bspm", repos="https://cran.r-project.org")'
sudo Rscript --vanilla -e 'remotes::install_url("https://cloud.r-project.org/src/contrib/Archive/bspm/bspm_0.3.10.tar.gz")'
echo "suppressMessages(bspm::enable())" | sudo tee --append /etc/R/Rprofile.site >/dev/null
##--not needed with 0.3.10 echo "options(bspm.version.check=FALSE)" | sudo tee --append /etc/R/Rprofile.site >/dev/null
##--not needed here echo "options(bspm.sudo=TRUE)" | sudo tee --append /etc/R/Rprofile.site >/dev/null
echo "options(bspm.version.check=FALSE)" | sudo tee --append /etc/R/Rprofile.site >/dev/null
fi
}

Expand Down Expand Up @@ -321,7 +318,6 @@ RBinaryInstall() {

InstallGithub() {
#EnsureDevtools
#echo "Installing GitHub packages: $@"
sudo Rscript -e 'remotes::install_github(commandArgs(TRUE))' "$@"
}

Expand Down

0 comments on commit e74fa45

Please sign in to comment.