Skip to contents

Creates a complete concatenated string of all ofhelper package R script files. This function is specifically designed for environments like the Our Future Health TRE where external packages cannot be installed, allowing the complete package source to be embedded directly into command executions.

Usage

create_ofhelper_string(print_to_console = FALSE)

Arguments

print_to_console

Logical, defaults to FALSE. If TRUE, prints the package function definitions directly to the console, if FALSE, outputs the content as character string.

Value

Character string containing the complete source code of all ofhelper R scripts concatenated together

Details

The function reads all R scripts from the ofhelper package and combines them into a single string that can be included in command inputs, eliminating the need for package installation in restricted environments.

See also

create_cmd_input_string for usage in Jupyter workstation contexts

Examples

if (FALSE) { # \dontrun{
# Create the complete ofhelper package source
# ofhelper_code <- create_ofhelper_string()
} # }