r install package version code example
Example 1: which package version do i have r
# Replace "snow" below with the name of the package
> packageVersion("snow")
Example 2: how to make an r package that install its dependencies
install.packages("mypackage.tar.gz",type="source",dependencies=TRUE,repos="http://a.cran.mirror")