Skip to content

Commit 4e7809f

Browse files
committed
use yihuis suggestions
1 parent e1d0c6f commit 4e7809f

10 files changed

+10
-40
lines changed

vignettes/datatable-faq.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ vignette: >
1515
---
1616
```{r, echo = FALSE, message = FALSE}
1717
library(data.table)
18-
opts = litedown::reactor()
19-
opts$comment = "# "
20-
opts$error = FALSE
21-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
18+
litedown::reactor(comment = "# ", print = NA)
2219
.old.th = setDTthreads(1)
2320
```
2421

vignettes/datatable-importing.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ vignette: >
1010
---
1111

1212
```{r, echo = FALSE, message = FALSE}
13-
opts = litedown::reactor()
14-
opts$comment = "# "
15-
opts$error = FALSE
16-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
13+
litedown::reactor(comment = "# ", print = NA)
1714
.old.th = data.table::setDTthreads(1)
1815
```
1916

vignettes/datatable-intro.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ vignette: >
1111

1212
```{r, echo = FALSE, message = FALSE}
1313
library(data.table)
14-
opts = litedown::reactor()
15-
opts$comment = "# "
16-
opts$error = FALSE
17-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
14+
litedown::reactor(comment = "# ", print = NA)
1815
.old.th = setDTthreads(1)
1916
```
2017

vignettes/datatable-joins.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ editor_options:
1313

1414
```{r, echo = FALSE, message = FALSE}
1515
library(data.table)
16-
opts = litedown::reactor()
17-
opts$comment = "# "
18-
opts$error = FALSE
19-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
16+
litedown::reactor(comment = "# ", print = NA)
2017
```
2118

2219
In this vignette you will learn how to perform any join operation using resources available in the `data.table` syntax.

vignettes/datatable-keys-fast-subset.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ vignette: >
1111

1212
```{r, echo = FALSE, message = FALSE}
1313
library(data.table)
14-
opts = litedown::reactor()
15-
opts$comment = "# "
16-
opts$error = FALSE
17-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
14+
litedown::reactor(comment = "# ", print = NA)
1815
.old.th = setDTthreads(1)
1916
```
2017

vignettes/datatable-programming.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ vignette: >
1111

1212
```{r init, echo = FALSE, message = FALSE}
1313
library(data.table)
14-
opts = litedown::reactor()
15-
opts$comment = "# "
16-
opts$error = FALSE
17-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
14+
litedown::reactor(comment = "# ", print = NA)
1815
```
1916

2017

vignettes/datatable-reference-semantics.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ vignette: >
1111

1212
```{r, echo = FALSE, message = FALSE}
1313
library(data.table)
14-
opts = litedown::reactor()
15-
opts$comment = "# "
16-
opts$error = FALSE
17-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
14+
litedown::reactor(comment = "# ", print = NA)
1815
.old.th = setDTthreads(1)
1916
```
2017
This vignette discusses *data.table*'s reference semantics which allows to *add/update/delete* columns of a *data.table by reference*, and also combine them with `i` and `by`. It is aimed at those who are already familiar with *data.table* syntax, its general form, how to subset rows in `i`, select and compute on columns, and perform aggregations by group. If you're not familiar with these concepts, please read the `vignette("datatable-intro", package="data.table")` first.

vignettes/datatable-reshape.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ vignette: >
1111

1212
```{r, echo = FALSE, message = FALSE}
1313
library(data.table)
14-
opts = litedown::reactor()
15-
opts$comment = "# "
16-
opts$error = FALSE
17-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
14+
litedown::reactor(comment = "# ", print = NA)
1815
.old.th = setDTthreads(1)
1916
```
2017

vignettes/datatable-sd-usage.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ vignette: >
1616

1717
```{r, echo = FALSE, message = FALSE}
1818
library(data.table)
19-
opts = litedown::reactor()
20-
opts$comment = "# "
21-
opts$error = FALSE
22-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
19+
litedown::reactor(comment = "# ", print = NA)
2320
.old.th = setDTthreads(1)
2421
```
2522

vignettes/datatable-secondary-indices-and-auto-indexing.Rmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ vignette: >
1111

1212
```{r, echo = FALSE, message = FALSE}
1313
library(data.table)
14-
opts = litedown::reactor()
15-
opts$comment = "# "
16-
opts$error = FALSE
17-
opts$print = function(x, ...) capture.output(if (isS4(x)) methods::show(x, ...) else print(x, ...))
14+
litedown::reactor(comment = "# ", print = NA)
1815
.old.th = setDTthreads(1)
1916
```
2017

0 commit comments

Comments
 (0)