Description Usage Arguments Value Author(s) Examples
View source: R/checkPackageVersionOnCRAN.R
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.
1 2 3 | 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
1 2 3 | library(GenABEL)
packageVersion("GenABEL")
checkPackageVersionOnCRAN("GenABEL")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.