From 408d2eec144ba884f148be47ace1ec9e5f52e01b Mon Sep 17 00:00:00 2001 From: Roman Pahl Date: Thu, 4 Nov 2021 00:07:15 +0100 Subject: [PATCH] Fix Notes from R package check as-cran (#8) --- .Rbuildignore | 1 + DESCRIPTION | 9 ++++----- docs/articles/manage-data-columns.html | 2 +- vignettes/manage-data-columns.Rmd | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index 81ba7bca..aa05adff 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -8,6 +8,7 @@ tags ^pkgdown$ ^_pkgdown\.yml$ ^docs$ +^doc$ ^README\.Rmd$ ^doc$ ^Meta$ diff --git a/DESCRIPTION b/DESCRIPTION index 46fef166..dddfe29c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,18 +1,17 @@ Package: container Type: Package -Title: Extending base R list and data.table +Title: Extending Base R List Version: 1.0.0 -Date: 2020-11-07 +Date: 2021-11-03 Authors@R: person("Roman", "Pahl", email = "roman.pahl@gmail.com", role = c("aut", "cre")) -Description: container extends the functionality of base R list and +Description: Extends the functionality of base R list and provides specialized data structures deque, set, dict, and dict.table, the latter to extend the data.table package. -Depends: R (>= 3.0) +Depends: R (>= 3.5.0) License: GPL-3 -LazyData: TRUE Encoding: UTF-8 Imports: data.table, methods, R6 VignetteBuilder: knitr diff --git a/docs/articles/manage-data-columns.html b/docs/articles/manage-data-columns.html index 142069b5..3cf83cfd 100644 --- a/docs/articles/manage-data-columns.html +++ b/docs/articles/manage-data-columns.html @@ -119,7 +119,7 @@

Manage data columns with dict.table

Motivation

The dplyr functions select and mutate are widely used to manage data data.frame (or tibble) columns. They cover a wide range of use cases and are applied in quick data exploration as well as in data analysis pipelines. On the other hand, when implementing critical code or building R packages, developers may revert to base R to minimize errors and code dependencies. At least, both mutate and select may require additional checking, for example, to catch column name clashes.

-

The container package in parts was developed to close this gap. With version 1.0.0, it provides dict.table, which can be considered a data.table with an extended set of functions to add, extract, remove and replace data columns with minimal required additional checking, hopefully resulting in lean and robust code.

+

The container package in parts was developed to close this gap. With version 1.0.0, it provides dict.table, which can be considered a data.table with an extended set of functions to add, extract, remove and replace data columns with minimal required additional checking, hopefully resulting in lean and robust code.

This vignette compares basic dplyr and dict.table data column operations and at the end shows that both frameworks can be easily combined.

diff --git a/vignettes/manage-data-columns.Rmd b/vignettes/manage-data-columns.Rmd index 00a89304..956aa774 100644 --- a/vignettes/manage-data-columns.Rmd +++ b/vignettes/manage-data-columns.Rmd @@ -46,7 +46,7 @@ developers may revert to base R to minimize errors and code dependencies. At least, both `mutate` and `select` may require additional checking, for example, to catch column name clashes. -The [container](https://cran.r-project.org/web/packages/container/index.html) +The [container](https://CRAN.R-project.org/package=container) package in parts was developed to close this gap. With version 1.0.0, it provides `dict.table`, which can be considered a [data.table](https://CRAN.R-project.org/package=data.table) with