findConnectedCode: Find rows which, taken together, are parseable code

View source: R/rstudio-toggle_subsections.R

findConnectedCodeR Documentation

Find rows which, taken together, are parseable code

Description

Find rows which, taken together, are parseable code

Usage

findConnectedCode(documentText, row)

Arguments

documentText
row

Examples

documentText <- c(
  "a <- letters[",
  "1:3",
  "]",
  "b <- 1",
  "c(a,",
  "b)"
)
row <- 6
findConnectedCode(documentText, row)
for (i in 1:6) print(findConnectedCode(documentText, i))

dlill/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.