check_cran_package {risk.assessr}R Documentation

Check if a Package Exists on CRAN

Description

This function checks if a given package is available on CRAN.

Usage

check_cran_package(package_name)

Arguments

package_name

A character string specifying the name of the package to check.

Value

A logical value: 'TRUE' if the package exists on CRAN, 'FALSE' otherwise.

Examples

## Not run: 
# Check if the package "ggplot2" exists on CRAN
check_cran_package("ggplot2")

## End(Not run)

[Package risk.assessr version 2.0.0 Index]