global_prompt_install | R Documentation |
When enabled, packageNotFoundError
thrown by loadNamespace()
cause a user prompt to install the missing package and continue
without interrupting the current program.
This is similar to how check_installed()
prompts users to install
required packages. It uses the same install strategy, using pak if
available and install.packages()
otherwise.
global_prompt_install(enable = TRUE)
enable |
Whether to enable or disable global handling. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.