checkPackageVersionOnCRAN: checks what is the version of package on CRAN

Description Usage Arguments Value Author(s) Examples

View source: R/checkPackageVersionOnCRAN.R

Description

Checks what is the version of package on CRAN. The CRAN page (baseUrlCRAN+packageName) is checked and parsed extracting the line with "Package source: packageName_Version.tar.gz" e.g. "Package source: GenABEL_1.6-9.tar.gz" and then the 'Version' is returned. Otherwise, NULL is returned.

Usage

1
2
3
  checkPackageVersionOnCRAN(packageName,
    baseUrlCRAN = "http://cran.r-project.org/web/packages/",
    timeout = 2)

Arguments

packageName

name of the package to check

baseUrlCRAN

path to CRAN repository

timeout

web chack timeout

Value

string containing CRAN version of the package

Author(s)

Yurii Aulchenko

Examples

1
2
3

GenABEL documentation built on May 30, 2017, 3:36 a.m.