global_prompt_install: Prompt user to install missing packages

View source: R/cnd-handlers.R

global_prompt_installR Documentation

Prompt user to install missing packages

Description

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.

Usage

global_prompt_install(enable = TRUE)

Arguments

enable

Whether to enable or disable global handling.


rlang documentation built on June 22, 2024, 9:31 a.m.