extract_inline_rcode: Replace all occurrences of inline R chunks with the...

View source: R/utils-extract-inline-rcode.R

extract_inline_rcodeR Documentation

Replace all occurrences of inline R chunks with the evaluation of the code inside them for an arbitrarily complex string

Description

Replace all occurrences of inline R chunks with the evaluation of the code inside them for an arbitrarily complex string

Usage

extract_inline_rcode(str)

Arguments

str

The string to evaluate, containing zero or more instances of `r code_here` inline R chunks

Value

A string, without any inline r chunks

Examples

extract_inline_rcode("Testing `r Sys.time()` one two")

pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.