File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -494,14 +494,20 @@ get_newline_locs <- function(x) {
494
494
495
495
find_line_fun <- function (content , newline_locs ) {
496
496
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
+ )
498
501
which(newline_locs > = line_number )[1L ] - 1L
499
502
}
500
503
}
501
504
502
505
find_column_fun <- function (content , newline_locs ) {
503
506
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
+ )
505
511
matched_line_number <- which(newline_locs > = line_number )[1L ] - 1L
506
512
line_number - newline_locs [matched_line_number ]
507
513
}
You can’t perform that action at this time.
0 commit comments