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)The modified prompt with package file contents included.