| prompt_install_missing_packages | R Documentation |
In interactive sessions, offer to install the optional packages a method needs before it runs. Returns the packages still missing afterwards (the whole set unchanged when the user declines or the session is non-interactive), so the caller can decide to skip the method.
prompt_install_missing_packages(
pkgs,
method_name,
is_installed = NULL,
install_packages = NULL
)
pkgs |
[character] Packages the method suggests but that are absent. |
method_name |
[character] Method the packages are needed for. |
is_installed |
[function, optional] Predicate testing package
availability. Injectable for testing; defaults to |
install_packages |
[function, optional] Installer. Injectable for
testing; defaults to |
[character] The packages that remain missing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.