Skip to content

Commit 1834009

Browse files
de-lint (#1378)
* de-lint * tidyverse style, missing space Co-authored-by: Michael Chirico <michaelchirico4@gmail.com>
1 parent afb68f4 commit 1834009

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

R/get_source_expressions.R

+8-2
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,20 @@ get_newline_locs <- function(x) {
494494

495495
find_line_fun <- function(content, newline_locs) {
496496
function(line_number) {
497-
warning("find_line is deprecated and will soon be removed. XPath logic and xml_nodes_to_lints() are usually preferable")
497+
warning(
498+
"find_line is deprecated and will soon be removed. ",
499+
"XPath logic and xml_nodes_to_lints() are usually preferable"
500+
)
498501
which(newline_locs >= line_number)[1L] - 1L
499502
}
500503
}
501504

502505
find_column_fun <- function(content, newline_locs) {
503506
function(line_number) {
504-
warning("find_column is deprecated and will soon be removed. XPath logic and xml_nodes_to_lints() are usually preferable")
507+
warning(
508+
"find_column is deprecated and will soon be removed. ",
509+
"XPath logic and xml_nodes_to_lints() are usually preferable"
510+
)
505511
matched_line_number <- which(newline_locs >= line_number)[1L] - 1L
506512
line_number - newline_locs[matched_line_number]
507513
}

0 commit comments

Comments
 (0)