From fae4699bba188081ec03d7600b7ef2962b5d6da9 Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 16 Dec 2015 16:41:08 -0600 Subject: [PATCH] Restore yaml metadata necessary for travis --- _plugins/knit.r | 2 +- _plugins/rmarkdown.rb | 8 ++++---- data-structures.Rmd | 4 ++++ datetimes.Rmd | 4 ++++ eda.Rmd | 4 ++++ functions.Rmd | 4 ++++ import.Rmd | 4 ++++ intro.Rmd | 4 ++++ lists.Rmd | 4 ++++ model-assess.Rmd | 4 ++++ model-vis.Rmd | 4 ++++ model.Rmd | 4 ++++ rmarkdown.Rmd | 4 ++++ shiny.Rmd | 4 ++++ strings.Rmd | 4 ++++ tidy.Rmd | 4 ++++ transform.Rmd | 4 ++++ visualize.Rmd | 4 ++++ 18 files changed, 69 insertions(+), 5 deletions(-) diff --git a/_plugins/knit.r b/_plugins/knit.r index 0d0f1ce..c6cfd26 100755 --- a/_plugins/knit.r +++ b/_plugins/knit.r @@ -4,7 +4,7 @@ library(bookdown) library(methods) args <- commandArgs(trailingOnly = TRUE) -path <- args[1] +path <- temp.Rmd if (!file.exists(path)) { stop("Can't find path ", path, call. = FALSE) diff --git a/_plugins/rmarkdown.rb b/_plugins/rmarkdown.rb index 0bc0451..9bbb72f 100644 --- a/_plugins/rmarkdown.rb +++ b/_plugins/rmarkdown.rb @@ -21,13 +21,13 @@ module Jekyll # http://rubyquicktips.com/post/5862861056/execute-shell-commands content = `_plugins/knit.r temp.Rmd` - + if $?.exitstatus != 0 - raise "Knitting failed" + raise "Knitting failed" end - + content # File.unlink f.path end end -end \ No newline at end of file +end diff --git a/data-structures.Rmd b/data-structures.Rmd index 8800ede..61d4948 100644 --- a/data-structures.Rmd +++ b/data-structures.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Data structures Might be quite brief. diff --git a/datetimes.Rmd b/datetimes.Rmd index 556cb4e..bbfae71 100644 --- a/datetimes.Rmd +++ b/datetimes.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Dates and times diff --git a/eda.Rmd b/eda.Rmd index 8685f66..541eaa2 100644 --- a/eda.Rmd +++ b/eda.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Exploratory data analysis ```{r, include = FALSE} diff --git a/functions.Rmd b/functions.Rmd index f215592..399e72f 100644 --- a/functions.Rmd +++ b/functions.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Expressing yourself in code ```{r, include = FALSE} diff --git a/import.Rmd b/import.Rmd index 79c4a44..5e4eb8e 100644 --- a/import.Rmd +++ b/import.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Data import ```{r, include = FALSE} diff --git a/intro.Rmd b/intro.Rmd index 587c35f..4d116db 100644 --- a/intro.Rmd +++ b/intro.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Introduction ```{r setup-intro, include = FALSE} diff --git a/lists.Rmd b/lists.Rmd index 09aa4eb..16b2b5b 100644 --- a/lists.Rmd +++ b/lists.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Lists ```{r setup-lists, include=FALSE} diff --git a/model-assess.Rmd b/model-assess.Rmd index 48ebb0e..ed35000 100644 --- a/model-assess.Rmd +++ b/model-assess.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Model assessment ```{r setup-model, include=FALSE} diff --git a/model-vis.Rmd b/model-vis.Rmd index ac429e7..b6b2a16 100644 --- a/model-vis.Rmd +++ b/model-vis.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Model visualisation Gap minder diff --git a/model.Rmd b/model.Rmd index 163e9d1..7b4316c 100644 --- a/model.Rmd +++ b/model.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Model After reading this chapter, what can you do that you couldn't before? diff --git a/rmarkdown.Rmd b/rmarkdown.Rmd index 4407df7..2030a23 100644 --- a/rmarkdown.Rmd +++ b/rmarkdown.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # R Markdown Recommendations for learning more about communication: diff --git a/shiny.Rmd b/shiny.Rmd index 578d0bd..a0c4073 100644 --- a/shiny.Rmd +++ b/shiny.Rmd @@ -1 +1,5 @@ +---- +layout: default +---- + # Shiny diff --git a/strings.Rmd b/strings.Rmd index 35355af..ce79688 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # String manipulation ```{r setup-strings, include = FALSE} diff --git a/tidy.Rmd b/tidy.Rmd index 86be192..45ae7db 100644 --- a/tidy.Rmd +++ b/tidy.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Tidy data > "Tidy datasets are all alike but every messy dataset is messy in its diff --git a/transform.Rmd b/transform.Rmd index 137e765..5d0f501 100644 --- a/transform.Rmd +++ b/transform.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Data transformation {#transform} ```{r setup-transform, include = FALSE} diff --git a/visualize.Rmd b/visualize.Rmd index 3ee6654..458e8ff 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -1,3 +1,7 @@ +---- +layout: default +---- + # Data visualisation ```{r setup-visualise, include = FALSE}