| checkPackageVersionOnCRAN {GenABEL} | R Documentation |
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.
checkPackageVersionOnCRAN(packageName,
baseUrlCRAN = "http://cran.r-project.org/web/packages/",
timeout = 2)
packageName |
name of the package to check |
baseUrlCRAN |
path to CRAN repository |
timeout |
web chack timeout |
string containing CRAN version of the package
Yurii Aulchenko
library(GenABEL)
packageVersion("GenABEL")
checkPackageVersionOnCRAN("GenABEL")