Learn R Programming

languageserver (version 0.3.0)

document_backward_search: search backwards in a document for a specific character

Description

search backwards in a document for a specific character

Usage

document_backward_search(document, position, char,
  skip_empty_line = TRUE)

Arguments

document

a character, the contents of the document

position

a position object

char

a single character

skip_empty_line

a logical

Value

a tuple of positive integers, the line and column position of the character if found, otherwise (-1, -1)