regex_content_parameter: Construct Regex for Matching Function Parameter Content

View source: R/regex_content_parameter.R

regex_content_parameterR Documentation

Construct Regex for Matching Function Parameter Content

Description

This function constructs a regex pattern for matching the content of a parameter in a function. It uses the base::paste0 function to construct the regex pattern.

Usage

regex_content_parameter(parameter)

Arguments

parameter

The parameter whose value is to be searched in a function.

Value

A regex pattern as a character string.

Examples

# Create a parameter name
parameter <- "my_parameter"
# Construct a regex pattern for matching the content of the parameter
pattern <- regex_content_parameter(parameter)


vvauditor documentation built on May 29, 2024, 12:20 p.m.