File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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() | >
You can’t perform that action at this time.
0 commit comments