fetch_package_version: Fetches the Current Version of Pacakge

View source: R/formods.R

fetch_package_versionR Documentation

Fetches the Current Version of Pacakge

Description

The specified package version is extracted and returned. This can simply be the version installed from CRAN or if a development version from GitHub is used details from that will be returned.

Usage

fetch_package_version(pkgname)

Arguments

pkgname

Name of package

Value

String with the version information

Examples

# This package should exist
fetch_package_version('digest')

# This package should not exist
fetch_package_version('bad package name')

formods documentation built on April 12, 2025, 1:57 a.m.