Skip to content

Commit

Permalink
programming vignette tweak (#5010)
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki authored May 23, 2021
1 parent 7a9eb51 commit c179b5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ navbar:
href: articles/datatable-keys-fast-subset.html
- text: "Secondary indices and auto indexing"
href: articles/datatable-secondary-indices-and-auto-indexing.html
- text: "Efficient reshaping using data.tables"
- text: "Efficient reshaping using data.table"
href: articles/datatable-reshape.html
- text: "Programming on data.table"
href: articles/datatable-programming.html
- text: "Frequently asked questions"
href: articles/datatable-faq.html
- text: "Importing data.table"
Expand Down
2 changes: 1 addition & 1 deletion vignettes/datatable-programming.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Though these can be helpful, we will be discussing a `data.table`-unique approac

Now that we've established the proper way to parameterize code that uses *lazy evaluation*, we can move on to the main subject of this vignette, *programming on data.table*.

Starting from version 1.12.10, data.table provides a robust mechanism for parameterizing expressions passed to the `i`, `j`, and `by` (or `keyby`) arguments of `[.data.table`. It is built upon the base R `substitute` function, and mimics its interface. Here, we introduce `substitute2` as a more robust and more user-friendly version of base R's `substitute`. For a complete list of differences between `base::substitute` and `data.table::substitute2` please read the [`substitute2` manual](https://rdatatable.gitlab.io/data.table/library/data.table/html/substitute2.html).
Starting from version 1.14.2, data.table provides a robust mechanism for parameterizing expressions passed to the `i`, `j`, and `by` (or `keyby`) arguments of `[.data.table`. It is built upon the base R `substitute` function, and mimics its interface. Here, we introduce `substitute2` as a more robust and more user-friendly version of base R's `substitute`. For a complete list of differences between `base::substitute` and `data.table::substitute2` please read the [`substitute2` manual](https://rdatatable.gitlab.io/data.table/library/data.table/html/substitute2.html).

### Substituting variables and names

Expand Down

0 comments on commit c179b5e

Please sign in to comment.