From 9bacc129e7a95f52ae0b6a9fdd04633dcee5e58a Mon Sep 17 00:00:00 2001 From: Mahjabin Oyshi Date: Fri, 6 Mar 2026 21:24:21 +0600 Subject: [PATCH 1/4] Add issue template for revdep check failures Based on Revdep checks and revdep issue template wiki pages (implements issue #7658) --- .../ISSUE_TEMPLATE/revdep-check-failure.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/revdep-check-failure.md diff --git a/.github/ISSUE_TEMPLATE/revdep-check-failure.md b/.github/ISSUE_TEMPLATE/revdep-check-failure.md new file mode 100644 index 0000000000..2aa2d6286b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/revdep-check-failure.md @@ -0,0 +1,30 @@ +--- + +name: Revdep check failure + +about: Contact a reverse dependency maintainer about a new check failure caused by data.table changes + +title: "\[revdep] YOUR\_PACKAGE: new check failure with data.table master" + +labels: \[] + +assignees: \[] + +--- + + + +Hi @MAINTAINER, + + + +After installing \*\*data.table\*\* from GitHub master + + + +```r + +data.table::update\_dev\_pkg() + + + From 608ba17bdb7de3b952b347e22cdf235bf4368d74 Mon Sep 17 00:00:00 2001 From: Mahjabin Oyshi Date: Fri, 6 Mar 2026 21:43:12 +0600 Subject: [PATCH 2/4] Clean formatting of revdep check failure template --- .../ISSUE_TEMPLATE/revdep-check-failure.md | 98 ++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/revdep-check-failure.md b/.github/ISSUE_TEMPLATE/revdep-check-failure.md index 2aa2d6286b..9c971db22e 100644 --- a/.github/ISSUE_TEMPLATE/revdep-check-failure.md +++ b/.github/ISSUE_TEMPLATE/revdep-check-failure.md @@ -23,8 +23,104 @@ After installing \*\*data.table\*\* from GitHub master ```r - data.table::update\_dev\_pkg() +``` + + + +and then running `R CMD check` on \*\*YOUR\_PACKAGE\*\*, I get the following new failure, which is \*\*not present\*\* when using data.table from CRAN. + + + + + +\## Package and environment + + + +\- Package: YOUR\_PACKAGE + +\- Package version: YOUR\_PACKAGE\_VERSION + +\- R version(s): R\_RELEASE\_AND\_OR\_R\_DEVEL + +\- data.table versions: + +  - CRAN: DT\_CRAN\_VERSION + +  - GitHub master: DT\_MASTER\_SHA\_OR\_VERSION + +\- Platform: OS / architecture (for example, linux-x86\_64) + + + +\## Related data.table issue and commit + + + +We track this revdep failure in the data.table issue tracker here: + + + +\- Data.table issue: https://github.com/Rdatatable/data.table/issues/REVDEP\_ISSUE\_NUMBER + +\- First bad commit (from revdep checks): https://github.com/Rdatatable/data.table/commit/FIRST\_BAD\_COMMIT\_SHA + + + + + +\## Check output + + + +Below is the relevant part of the failing check log: + + + +```text +OUTPUT\_FROM\_FAILING\_CHECK +``` + + + +\## Suggested fix + + + +Before uploading new versions to CRAN, \*\*data.table\*\* needs to ensure that updates do not break CRAN checks in dependent packages like \*\*YOUR\_PACKAGE\*\*. So can you please submit an updated version of \*\*YOUR\_PACKAGE\*\* to CRAN that fixes this check issue? + + + +In particular, I would suggest to avoid + + + +> DOING\_WHAT\_YOU\_ARE\_DOING\_CURRENTLY + + + +and instead + + + +> DOING\_SOMETHING\_MORE\_ROBUST. + + + +(If we have a more specific suggestion or PR, we will add it here.) + + + +\## Additional context (optional) + + + +\- Minimal reproducible example, if available. + +\- Links to previous revdep check runs or CRAN check results for YOUR\_PACKAGE. + +\- Any notes that might help debug. From ecc28f861c0058e3676974ebdfec89d71d06b651 Mon Sep 17 00:00:00 2001 From: Mahjabin Oyshi Date: Thu, 28 May 2026 21:26:03 +0600 Subject: [PATCH 3/4] docs: add datatable.prettyprint.char to datatable-intro vignette Closes #7714 Added explanation and example of datatable.prettyprint.char option in the 'Note that' section, near the datatable.print.nrows bullet. --- vignettes/datatable-intro.Rmd | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vignettes/datatable-intro.Rmd b/vignettes/datatable-intro.Rmd index c9392f4c5a..deaadb0dab 100644 --- a/vignettes/datatable-intro.Rmd +++ b/vignettes/datatable-intro.Rmd @@ -95,6 +95,18 @@ You can also convert existing objects to a `data.table` using `setDT()` (for `da getOption("datatable.print.nrows") ``` +* The option `datatable.prettyprint.char` controls how many characters + are displayed per entry in character columns when printing. Entries + exceeding this limit are truncated with `...` (via `strtrim()`). + You can set it like so: + +````{r} + old = options(datatable.prettyprint.char = 5L) + DT = data.table(x = 1:2, y = c("abcdefghij", "klmnopqrstuv")) + DT + options(old) # reset to default +```` + * `data.table` doesn't set or use *row names*, ever. We will see why in the [`vignette("datatable-keys-fast-subset", package="data.table")`](datatable-keys-fast-subset.html) vignette. ### b) General form - in what way is a `data.table` *enhanced*? {#enhanced-1b} From e5245c841bad2fa74a68dd22ff21a96f9fb66c8a Mon Sep 17 00:00:00 2001 From: Mahjabin Siddika Oyshi Date: Thu, 28 May 2026 21:29:01 +0600 Subject: [PATCH 4/4] Delete .github/ISSUE_TEMPLATE/revdep-check-failure.md --- .../ISSUE_TEMPLATE/revdep-check-failure.md | 126 ------------------ 1 file changed, 126 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/revdep-check-failure.md diff --git a/.github/ISSUE_TEMPLATE/revdep-check-failure.md b/.github/ISSUE_TEMPLATE/revdep-check-failure.md deleted file mode 100644 index 9c971db22e..0000000000 --- a/.github/ISSUE_TEMPLATE/revdep-check-failure.md +++ /dev/null @@ -1,126 +0,0 @@ ---- - -name: Revdep check failure - -about: Contact a reverse dependency maintainer about a new check failure caused by data.table changes - -title: "\[revdep] YOUR\_PACKAGE: new check failure with data.table master" - -labels: \[] - -assignees: \[] - ---- - - - -Hi @MAINTAINER, - - - -After installing \*\*data.table\*\* from GitHub master - - - -```r -data.table::update\_dev\_pkg() -``` - - - -and then running `R CMD check` on \*\*YOUR\_PACKAGE\*\*, I get the following new failure, which is \*\*not present\*\* when using data.table from CRAN. - - - - - -\## Package and environment - - - -\- Package: YOUR\_PACKAGE - -\- Package version: YOUR\_PACKAGE\_VERSION - -\- R version(s): R\_RELEASE\_AND\_OR\_R\_DEVEL - -\- data.table versions: - -  - CRAN: DT\_CRAN\_VERSION - -  - GitHub master: DT\_MASTER\_SHA\_OR\_VERSION - -\- Platform: OS / architecture (for example, linux-x86\_64) - - - -\## Related data.table issue and commit - - - -We track this revdep failure in the data.table issue tracker here: - - - -\- Data.table issue: https://github.com/Rdatatable/data.table/issues/REVDEP\_ISSUE\_NUMBER - -\- First bad commit (from revdep checks): https://github.com/Rdatatable/data.table/commit/FIRST\_BAD\_COMMIT\_SHA - - - - - -\## Check output - - - -Below is the relevant part of the failing check log: - - - -```text -OUTPUT\_FROM\_FAILING\_CHECK -``` - - - -\## Suggested fix - - - -Before uploading new versions to CRAN, \*\*data.table\*\* needs to ensure that updates do not break CRAN checks in dependent packages like \*\*YOUR\_PACKAGE\*\*. So can you please submit an updated version of \*\*YOUR\_PACKAGE\*\* to CRAN that fixes this check issue? - - - -In particular, I would suggest to avoid - - - -> DOING\_WHAT\_YOU\_ARE\_DOING\_CURRENTLY - - - -and instead - - - -> DOING\_SOMETHING\_MORE\_ROBUST. - - - -(If we have a more specific suggestion or PR, we will add it here.) - - - -\## Additional context (optional) - - - -\- Minimal reproducible example, if available. - -\- Links to previous revdep check runs or CRAN check results for YOUR\_PACKAGE. - -\- Any notes that might help debug. - - -