Is there a function to check if the package is updated with devtools :: install_github?

I am the author of a package stored on github. My colleagues install this package using devtools::install_github() . They would like to check if the package is updated or not. Is there a function to check that there was a commit in the github main server branch since they last installed the package?

+7
r devtools
source share
1 answer

This is an indirect approach that I know of. Then you can find your installed version of packageVersion()

A package called versions . The available.versions() function can help you. This will find you all available package versions.

 packageVersion("ggplot2") #[1] '1.0.1' available.versions("ggplot2") #$ggplot2 # version date available #1 1.0.1 2015-03-17 TRUE #2 1.0.0 2014-05-21 FALSE #3 0.9.3.1 2013-03-02 FALSE ... 

Update:

The devtools package has the functions package_deps () and dev_package_deps ().

 package_deps("ggplot2") # Needs update ----------------------------- # package installed available # ggplot2 2.0.0 2.1.0 # scales NA 0.4.0 ?package_deps "Find all dependencies of a CRAN or dev package." 

{This feature has not been tested for the development package since my end. However, I believe this should do your job.}

+2
source share

All Articles