Skip to content

Commit 6f1a16e

Browse files
can't if(grepl(readLines())) b/c it's a vector
1 parent d522d73 commit 6f1a16e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/linters/rd/options_doc_check.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ensure that data.table options in code match documentation
22
options_documentation_linter = function(rd_file) {
3-
if (!grepl("\\name{data.table-options}", readLines(rd_file), fixed = TRUE)) return(invisible())
3+
if (!grepl("\\name{data.table-options}", readChar(rd_file, 100L), fixed = TRUE)) return(invisible())
44

55
# Find options in R code
66
walk_r_ast_for_options = function(expr) {

0 commit comments

Comments
 (0)