has_package: Check if a package is available

View source: R/download.R

has_packageR Documentation

Check if a package is available

Description

Thin wrapper around requireNamespace() to allow mocking in tests.

Usage

has_package(pkg)

Arguments

pkg

Package name.

Value

Logical.


clinTrialData documentation built on March 3, 2026, 5:07 p.m.