Skip to content

Commit 50f9fc8

Browse files
committed
prefer to build rmd locally
1 parent fbaeab1 commit 50f9fc8

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

.travis.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
dist: xenial
22
language: python
3-
before_install:
4-
- sudo add-apt-repository "deb http://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -sc)/"
5-
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
6-
- sudo apt-get update
7-
- sudo apt-get install r-base
8-
- sudo apt-get install pandoc
9-
- sudo apt-get install gfortran
10-
- echo 'local({r = getOption("repos"); r["CRAN"] = "http://cloud.r-project.org/"; options(repos = r)})' > .Rprofile
11-
- sudo Rscript -e 'install.packages(c("digest", "stringr", "knitr", "yaml", "htmltools", "rmarkdown"))'
123
install:
134
- pip install mkdocs==0.17.2
145
- pip install mkdocs-material==2.5.2
156
- pip install pymdown-extensions
167
- pip install python-markdown-math
178
script:
189
- mkdocs build
19-
- cd rmds && sudo Rscript -e 'library(rmarkdown); rmarkdown::render_site()' && sudo mv _site/ ../site/rmds
10+
- mv rmds/_site/ site/rmds
2011

2112
deploy:
2213
provider: pages

rmds/glmnet.Rmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ y = X %*% beta + 3 * rnorm(n)
8484
We fit two models, one uses the default options, another use `penalty.factor=rep(2,5)`
8585

8686
```{r}
87-
install.packages("glmnet")
8887
library(glmnet)
8988
fit = glmnet(X, y)
9089
fit2 = glmnet(X, y, penalty.factor = rep(2, 5))

0 commit comments

Comments
 (0)