Skip to content

Commit f50eab3

Browse files
ignore nomatch (deprecated)
1 parent 1bee980 commit f50eab3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.ci/linters/rd/options_doc_check.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ options_documentation_linter = function(rd_file) {
1313

1414
# Find options in documentation
1515
walk_rd_ast_for_options = function(rd_element) {
16-
result = character()
1716
if (!is.list(rd_element)) return(character())
17+
18+
result = character()
1819
if (isTRUE(attr(rd_element, "Rd_tag") == "\\code") && length(rd_element) >= 1L) {
1920
content = rd_element[[1L]]
2021
if (is.character(content) && startsWith(content, "datatable.")) {
@@ -27,7 +28,8 @@ options_documentation_linter = function(rd_file) {
2728
code_opts = list.files("R", pattern = "\\.R$", full.names = TRUE) |>
2829
lapply(\(f) lapply(parse(f), walk_r_ast_for_options)) |>
2930
unlist() |>
30-
unique()
31+
unique() |>
32+
setdiff("datatable.nomatch") # ignore deprecated option(s)
3133

3234
doc_opts = rd_file |>
3335
tools::parse_Rd() |>

0 commit comments

Comments
 (0)