package_version_cran: Get the most recent package version available

Description Usage Arguments Examples

View source: R/package_version_control.R

Description

Retrieve the package version for the latest package available on either the CRAN or Github. Since the approval process for packages on the CRAN can lag behind the pace of development, the Github version of packages that are hosted there is likely to be more up to date. Helper methods for check_package(), update_package(), and family members.

Usage

1
2
package_version_cran(package,
  cran_url = "http://cran.r-project.org/web/packages/")

Arguments

package

Name of the package as a string

cran_url

Defaults to the CRAN's R package landing page. Does not need to be changed unless for advanced usage.

Examples

1
2
package_version_cran("ggplot2")
package_version_github("ShadeWilson/ihme")

ShadeWilson/ihme documentation built on May 20, 2019, 8:47 a.m.