This function checks for suggested packages and prompts the user to install any missing ones that are needed for full functionality.
install_suggested_packages(libname = NULL, pkgname = NULL)
Returns NULL invisibly. The function's main effects are:
Checking for missing suggested packages
Displaying missing packages to user
Installing packages if user agrees
Providing feedback on installation success/failure
The library name where the package is installed (not used)
The name of the package being loaded (not used)
The function maintains a predefined list of suggested packages and checks if they are installed. For missing packages, it prompts the user for installation in interactive sessions.
The function uses 'cli' for user communication and handles errors gracefully during installation attempts. In non-interactive sessions, it skips installation and returns with a warning.