-
Notifications
You must be signed in to change notification settings - Fork 990
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.15.0 on CRAN. Bump to 1.15.99 * Fix transform slowness (#5493) * Fix 5492 by limiting the costly deparse to `nlines=1` * Implementing PR feedbacks * Added inside * Fix typo in name * Idiomatic use of inside * Separating the deparse line limit to a different PR --------- Co-authored-by: Michael Chirico <[email protected]> * Improvements to the introductory vignette (#5836) * Added my improvements to the intro vignette * Removed two lines I added extra as a mistake earlier * Requested changes * Vignette typo patch (#5402) * fix typos and grammatical mistakes * fix typos and punctuation * remove double spaces where it wasn't necessary * fix typos and adhere to British English spelling * fix typos * fix typos * add missing closing bracket * fix typos * review fixes * Update vignettes/datatable-benchmarking.Rmd Co-authored-by: Michael Chirico <[email protected]> * Update vignettes/datatable-benchmarking.Rmd Co-authored-by: Michael Chirico <[email protected]> * Apply suggestions from code review benchmarking Co-authored-by: Michael Chirico <[email protected]> * remove unnecessary [ ] from datatable-keys-fast-subset.Rmd * Update vignettes/datatable-programming.Rmd Co-authored-by: Michael Chirico <[email protected]> * Update vignettes/datatable-reshape.Rmd Co-authored-by: Michael Chirico <[email protected]> * One last batch of fine-tuning --------- Co-authored-by: Michael Chirico <[email protected]> Co-authored-by: Michael Chirico <[email protected]> * Improved handling of list columns with NULL entries (#4250) * Updated documentation for rbindlist(fill=TRUE) * Print NULL entries of list as NULL * Added news item * edit NEWS, use '[NULL]' not 'NULL' * fix test * split NEWS item * add example --------- Co-authored-by: Michael Chirico <[email protected]> Co-authored-by: Michael Chirico <[email protected]> Co-authored-by: Benjamin Schwendinger <[email protected]> * clarify that list input->unnamed list output (#5383) * clarify that list input->unnamed list output * Add example where make.names is used * mention role of make.names * fix subsetting issue in split.data.table (#5368) * fix subsetting issue in split.data.table * add a test * drop=FALSE on inner [ * switch to 3.2.0 R dep (#5905) * Allow early exit from check for eval/evalq in cedta (#5660) * Allow early exit from check for eval/evalq in cedta Done in the browser+untested, please take a second look :) * Use %chin% * nocov new code * frollmax1: frollmax, frollmax adaptive, left adaptive support (#5889) * frollmax exact, buggy fast, no fast adaptive * frollmax fast fixing bugs * frollmax man to fix CRAN check * frollmax fast adaptive non NA, dev * froll docs, adaptive left * no frollmax fast adaptive * frollmax adaptive exact NAs handling * PR summary in news * copy-edit changes from reviews Co-authored-by: Benjamin Schwendinger <[email protected]> * Apply suggestions from code review Co-authored-by: Michael Chirico <[email protected]> Co-authored-by: Benjamin Schwendinger <[email protected]> * comment requested by Michael * update NEWS file * Apply suggestions from code review Co-authored-by: Michael Chirico <[email protected]> * Apply suggestions from code review Co-authored-by: Michael Chirico <[email protected]> * add comment requested by Michael * add comment about int iterator for loop over k-1 obs * extra comments * Revert "extra comments" This reverts commit 03af0e3. * add comments to frollmax and frollsum * typo fix --------- Co-authored-by: Michael Chirico <[email protected]> Co-authored-by: Benjamin Schwendinger <[email protected]> * Friendlier error in assignment with trailing comma (#5467) * friendlier error in assignment with trailing comma e.g. `DT[, `:=`(a = 1, b = 2,)`. WIP. Need to add tests and such, but editing from browser before I forget. * Another pass * include unnamed indices on RHS too * tests * NEWS * test numbering * explicit example in NEWS * Link to ?read.delim in ?fread to give a closer analogue of expected behavior (#5635) * fread is similar to read.delim (#5634) * Use ?read.csv / ?read.delim --------- Co-authored-by: Michael Chirico <[email protected]> Co-authored-by: Michael Chirico <[email protected]> * Run GHA jobs on 1-15-99 dev branch (#5909) * overhauled linter * revert code changes * Initial commit of {lintr} approach * first pass at personalization * first custom linter * delint vignettes * delint tests * delint R sources * rm empty * re-merge * Move config to .ci directory * Use endsWithAny * Make declarations static for covr (#5910) * restore lint on branch * extension needed after all? * set option in R * debug printing * Exact file name in option * really hacky approach * skip more linters * One more round of deactivation * FIx whitespace issues (again??) * botched merge * obsolete branch ref * restore simple CI script thanks to upstream fix * more delint * just disable unused_import_linter() everywhere for now * rm whitespace from atime tests * comment about comment --------- Co-authored-by: Ofek <[email protected]> Co-authored-by: Ani <[email protected]> Co-authored-by: David Budzynski <[email protected]> Co-authored-by: Scott Ritchie <[email protected]> Co-authored-by: Benjamin Schwendinger <[email protected]> Co-authored-by: Jan Gorecki <[email protected]> Co-authored-by: Benjamin Schwendinger <[email protected]> Co-authored-by: Manuel López-Ibáñez <[email protected]>
- Loading branch information
1 parent
20126b1
commit 6db0eda
Showing
24 changed files
with
168 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
for (f in list.files('ci/linters', full.names=TRUE)) source(f) | ||
rm(f) | ||
|
||
linters = all_linters( | ||
packages = "lintr", # TODO(lintr->3.2.0): Remove this. | ||
# eq_assignment_linter(), | ||
brace_linter(allow_single_line = TRUE), | ||
# TODO(michaelchirico): Activate these incrementally. These are the | ||
# parameterizations that match our style guide. | ||
# implicit_assignment_linter(allow_lazy = TRUE, allow_scoped = TRUE), | ||
# implicit_integer_linter(allow_colon = TRUE), | ||
# system_time_linter = undesirable_function_linter(c( | ||
# system.time = "Only run timings in benchmark.Rraw" | ||
# )), | ||
# undesirable_function_linter(modify_defaults( | ||
# default_undesirable_functions, | ||
# ifelse = "Use fifelse instead.", | ||
# Sys.setenv = NULL, | ||
# library = NULL, | ||
# options = NULL, | ||
# par = NULL, | ||
# setwd = NULL | ||
# )), | ||
undesirable_operator_linter(modify_defaults( | ||
default_undesirable_operators, | ||
`<<-` = NULL | ||
)), | ||
# TODO(lintr#2441): Use upstream implementation. | ||
assignment_linter = NULL, | ||
# TODO(lintr#2442): Use this once x[ , j, by] is supported. | ||
commas_linter = NULL, | ||
commented_code_linter = NULL, | ||
# TODO(linter->3.2.0): Activate this. | ||
consecutive_assertion_linter = NULL, | ||
cyclocomp_linter = NULL, | ||
function_argument_linter = NULL, | ||
indentation_linter = NULL, | ||
infix_spaces_linter = NULL, | ||
# TODO(R>3.2.0): Activate this, extending to recognize vapply_1i(x, length). | ||
lengths_linter = NULL, | ||
line_length_linter = NULL, | ||
missing_package_linter = NULL, | ||
namespace_linter = NULL, | ||
nonportable_path_linter = NULL, | ||
object_name_linter = NULL, | ||
object_usage_linter = NULL, | ||
quotes_linter = NULL, | ||
semicolon_linter = NULL, | ||
spaces_inside_linter = NULL, | ||
spaces_left_parentheses_linter = NULL, | ||
# TODO(michaelchirico): Only exclude from vignettes, not sure what's wrong. | ||
strings_as_factors_linter = NULL, | ||
# TODO(lintr->3.2.0): Fix on a valid TODO style, enforce it, and re-activate. | ||
todo_comment_linter = NULL, | ||
# TODO(michaelchirico): Enforce these and re-activate them one-by-one. Also stop using '<<-'. | ||
brace_linter = NULL, | ||
condition_call_linter = NULL, | ||
conjunct_test_linter = NULL, | ||
fixed_regex_linter = NULL, | ||
function_left_parentheses_linter = NULL, | ||
if_not_else_linter = NULL, | ||
implicit_assignment_linter = NULL, | ||
implicit_integer_linter = NULL, | ||
keyword_quote_linter = NULL, | ||
length_levels_linter = NULL, | ||
matrix_apply_linter = NULL, | ||
missing_argument_linter = NULL, | ||
nzchar_linter = NULL, | ||
object_overwrite_linter = NULL, | ||
paren_body_linter = NULL, | ||
redundant_equals_linter = NULL, | ||
rep_len_linter = NULL, | ||
repeat_linter = NULL, | ||
return_linter = NULL, | ||
sample_int_linter = NULL, | ||
scalar_in_linter = NULL, | ||
seq_linter = NULL, | ||
undesirable_function_linter = NULL, | ||
unnecessary_concatenation_linter = NULL, | ||
unnecessary_lambda_linter = NULL, | ||
unnecessary_nesting_linter = NULL, | ||
unreachable_code_linter = NULL, | ||
unused_import_linter = NULL | ||
) | ||
# TODO(lintr#2172): Glob with lintr itself. | ||
exclusions = local({ | ||
exclusion_for_dir <- function(dir, exclusions) { | ||
files = list.files(dir, pattern = "\\.(R|Rmd)$") | ||
stats::setNames(rep(list(exclusions), length(files)), files) | ||
} | ||
c( | ||
exclusion_for_dir("tests", list( | ||
quotes_linter = Inf, | ||
# TODO(michaelchirico): Enforce these and re-activate them one-by-one. | ||
implicit_integer_linter = Inf, | ||
infix_spaces_linter = Inf, | ||
undesirable_function_linter = Inf | ||
)), | ||
exclusion_for_dir("vignettes", list( | ||
quotes_linter = Inf | ||
# strings_as_factors_linter = Inf | ||
# system_time_linter = Inf | ||
)) | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
name: lint | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: | | ||
r-lib/lintr | ||
local::. | ||
needs: lint | ||
|
||
- name: Lint | ||
run: lintr::lint_package() | ||
shell: Rscript {0} | ||
env: | ||
LINTR_ERROR_ON_LINT: true | ||
R_LINTR_LINTER_FILE: .ci/.lintr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,4 +118,3 @@ uniqueN = function(x, by = if (is.list(x)) seq_along(x) else NULL, na.rm=FALSE) | |
length(starts) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,4 +353,3 @@ CJ = function(..., sorted = TRUE, unique = FALSE) | |
} | ||
l | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,4 +290,3 @@ all.equal.data.table = function(target, current, trim.levels=TRUE, check.attribu | |
} | ||
TRUE | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,3 @@ tables = function(mb=type_size, order.col="NAME", width=80, | |
} | ||
invisible(info) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,3 @@ uniqlengths = function(x, len) { | |
ans = .Call(Cuniqlengths, as.integer(x), as.integer(len)) | ||
ans | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,4 +165,3 @@ rss = function() { #5515 #5517 | |
round(ans / 1024, 1L) # return MB | ||
# nocov end | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.