Skip to content

Commit

Permalink
prefer to build rmd locally
Browse files Browse the repository at this point in the history
  • Loading branch information
szcf-weiya committed Feb 26, 2019
1 parent fbaeab1 commit 50f9fc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 1 addition & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
dist: xenial
language: python
before_install:
- sudo add-apt-repository "deb http://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -sc)/"
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
- sudo apt-get update
- sudo apt-get install r-base
- sudo apt-get install pandoc
- sudo apt-get install gfortran
- echo 'local({r = getOption("repos"); r["CRAN"] = "http://cloud.r-project.org/"; options(repos = r)})' > .Rprofile
- sudo Rscript -e 'install.packages(c("digest", "stringr", "knitr", "yaml", "htmltools", "rmarkdown"))'
install:
- pip install mkdocs==0.17.2
- pip install mkdocs-material==2.5.2
- pip install pymdown-extensions
- pip install python-markdown-math
script:
- mkdocs build
- cd rmds && sudo Rscript -e 'library(rmarkdown); rmarkdown::render_site()' && sudo mv _site/ ../site/rmds
- mv rmds/_site/ site/rmds

deploy:
provider: pages
Expand Down
1 change: 0 additions & 1 deletion rmds/glmnet.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ y = X %*% beta + 3 * rnorm(n)
We fit two models, one uses the default options, another use `penalty.factor=rep(2,5)`

```{r}
install.packages("glmnet")
library(glmnet)
fit = glmnet(X, y)
fit2 = glmnet(X, y, penalty.factor = rep(2, 5))
Expand Down

0 comments on commit 50f9fc8

Please sign in to comment.