@eagleoutice/flowr - v2.17.16
    Preparing search index...

    Function scanRCode

    • Walks the R code in text from from on, skipping string literals and quoted names (see closingQuote), and calls visit with every other character, its index, and the bracket depth after it (counting the brackets in open and close).

      Parameters

      • text: string
      • visit: (c: string, i: number, depth: number) => unknown
      • from: number = 0
      • open: string = '([{'
      • close: string = ')]}'

      Returns number | undefined

      the index at which visit first returns true, undefined if it never does