get_rmd_src_with_pos: Return rmd source file with positions where search pattern...

View source: R/odg_graphics.R

get_rmd_src_with_posR Documentation

Return rmd source file with positions where search pattern occurs

Description

Given a search pattern in ps_path and given the path of the current working directory, all files with extension .Rmd are searched whether the string in ps_path occurs in the rmd-source file. If the pattern is found in exactly one Rmd-source file, the name of the Rmd-source file and the positions where the pattern was found is returned. If the pattern is not found or the pattern occurs in more than one Rmd-source file, NULL is returned.

Usage

get_rmd_src_with_pos(ps_path, ps_cwd)

Arguments

ps_path

name of and path to odg-graphics file

ps_cwd

current working directory

Value

l_rmd_src_result list with name of rmd source file and positions where search pattern occurs


charlotte-ngs/rmdhelp documentation built on Oct. 31, 2023, 10:21 a.m.