Skip to content

Commit ba62e1f

Browse files
authored
update R version for Travis and prefer binary packages (#320)
1 parent d962659 commit ba62e1f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

R-package/.R.appveyor.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ conda install -y --no-deps pandoc
3636
cd .\R-package
3737
Add-Content .Renviron "R_LIBS=$env:R_LIB_PATH"
3838
Add-Content .Rprofile "options(repos = 'https://cran.rstudio.com')"
39+
Add-Content .Rprofile "options(pkgType = 'binary')"
40+
Add-Content .Rprofile "options(install.packages.check.source = 'no')"
3941
Add-Content .Rprofile "Sys.setenv(RETICULATE_PYTHON = '$([RegEx]::Escape($env:CONDA_PREFIX))/python.exe')"
4042

4143
Rscript -e "if(!'devtools' %in% rownames(installed.packages())) { install.packages('devtools', dependencies = TRUE) }"

R-package/.R.travis.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ mkdir -p $R_LIB_PATH
22
cd $TRAVIS_BUILD_DIR/R-package
33
echo "R_LIBS=$R_LIB_PATH" > .Renviron
44
echo 'options(repos = "https://cran.rstudio.com")' > .Rprofile
5+
echo 'options(pkgType = "binary")' >> .Rprofile
6+
echo 'options(install.packages.check.source = "no")' >> .Rprofile
57

68
export PATH="$R_LIB_PATH/R/bin:$PATH"
79

@@ -12,7 +14,7 @@ if [[ $TRAVIS_OS_NAME == "linux" ]]; then
1214
sudo apt-get install texlive-latex-recommended texlive-fonts-recommended texlive-fonts-extra qpdf
1315

1416
if ! command -v R &> /dev/null; then
15-
R_VER=3.6.1
17+
R_VER=3.6.2
1618
cd $TRAVIS_BUILD_DIR
1719
wget https://cran.r-project.org/src/base/R-3/R-$R_VER.tar.gz
1820
tar -xzf R-$R_VER.tar.gz

0 commit comments

Comments
 (0)