Skip to content

Commit

Permalink
Empty Global Env before each chapter (csgillespie#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
csgillespie authored and Robinlovelace committed Sep 23, 2016
1 parent 8734c04 commit dcc0b6d
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 01-introduction.Rmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

# Introduction {#introduction}

This chapter introduces the book. It describes the wide range of people it was written for, in terms of R and programming experience, and how you can get the most out of it. Anyone setting out to improve efficiency should have an understanding of precisely what they mean by the term, and this is discussed, with reference to *algorithmic* and *programmer* efficiency in Section \@ref(what-is-efficiency), and with reference to R in particular in \@ref(what-is-efficient-r-programming). It may seem obvious, but it's also worth thinking about *why* anyone would bother with efficient code now that powerful computers are cheap and accessible. This is covered in Section \@ref(why-efficiency).
Expand Down
3 changes: 3 additions & 0 deletions 02-set-up.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

```{r echo=FALSE}
data("USArrests", package="datasets")
Expand Down
3 changes: 3 additions & 0 deletions 04-workflow.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

# Efficient workflow {#workflow}

Expand Down
3 changes: 3 additions & 0 deletions 05-input-output.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

# Efficient input/output {#input-output}

Expand Down
3 changes: 3 additions & 0 deletions 06-data-carpentry.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

<!-- To do: -->
<!-- Talk about merge vs *_join -->
Expand Down
3 changes: 3 additions & 0 deletions 08-hardware.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

# Efficient hardware {#hardware}

Expand Down
3 changes: 3 additions & 0 deletions 09-collaboration.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

```{r echo=FALSE, message=FALSE}
library(dplyr)
Expand Down
3 changes: 3 additions & 0 deletions 10-learning.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
knit: "bookdown::preview_chapter"
---
```{r}
rm(list=ls())
```

# Efficient learning {#learning}

Expand Down

0 comments on commit dcc0b6d

Please sign in to comment.