powered by
grab.chunks(x, tag.open = get.tags("inline.open"), tag.close = get.tags("inline.close"), include = FALSE, ...)
FALSE
gregexpr
options
s <- c("As you know, pi equals <%pi%>", "2 raised to the power of 3 is <%2^3%>") grab.chunks(s, "<%", "%>", FALSE) ## [1] "pi" "2^3" grab.chunks(s, "<%", "%>", FALSE) ## [1] "<%pi%>" "<%2^3%>"
Run the code above in your browser using DataLab