Learn R Programming

formods (version 0.2.1)

fetch_package_version: 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)

Value

String with the version information

Arguments

pkgname

Name of package

Examples

Run this code
# This package should exist
fetch_package_version('digest')

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

Run the code above in your browser using DataLab