This function includes R files from a package in the prompt when a package is detected. It handles the inclusion of file contents and path-specific exclusions.

include_package_files(prompt, path)

Arguments

prompt

The current prompt to which package files should be added.

path

Current file path to exclude from the included files.

Value

The modified prompt with package file contents included.