Skip to content

Commit 2ae3e60

Browse files
committedJan 13, 2019
Use Rscript instead of littler (as unsure about how to
have littler on osx).
1 parent 2710ab2 commit 2ae3e60

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed
 

‎.travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ before_install:
2828
echo "Installing OS X binary package for R"
2929
sudo installer -pkg "/tmp/R-latest.pkg" -target
3030
rm "/tmp/R-latest.pkg"
31-
brew install python3 homebrew/core/littler
32-
./install_r_packages.r dplyr ggplot2
3331
virtualenv venv -p python3
3432
source venv/bin/activate
3533
fi
@@ -44,8 +42,8 @@ before_install:
4442
"deb https://cloud.r-project.org/bin/linux/ubuntu/ $(lsb_release -c -s)-cran35/"
4543
- cat /etc/apt/sources.list
4644
- sudo apt-get update -qq
47-
- sudo apt-get install -y r-base littler
48-
- sudo ./install_r_packages.r dplyr ggplot2
45+
- sudo apt-get install -y r-base
46+
- sudo Rscript ./install_r_packages.r dplyr ggplot2
4947
- pip install flake8 pytest pytest-cov
5048
- pip install ipython pandas numpy tzlocal
5149

‎install_r_packages.r

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
#!/usr/bin/env r
2-
3-
if (is.null(argv) | length(argv)<1) {
4-
cat("Usage: installr.r pkg1 [pkg2 pkg3 ...]\n")
5-
q()
6-
}
1+
args <- commandArgs(trailingOnly = TRUE)
72

83
repos <- "https://cran.rstudio.com"
94

10-
install.packages(argv, repos=repos)
5+
install.packages(args, repos = repos)

0 commit comments

Comments
 (0)
Please sign in to comment.