notifyIfNewVersion | R Documentation |
checkForNewVersion
looks for a tagged version on GitHub and compares with
the version number of the currently installed package. notifyIfNewVersion
wraps it and displays a message if there is a new version. It is called in
.onLoad()
.
notifyIfNewVersion(
package = "crunch",
github = "Crunch-io/rcrunch",
installed.version = as.character(packageVersion(package))
)
checkForNewVersion(github, installed.version)
package |
character package name |
github |
character "organization/repo" of your package on GitHub |
installed.version |
character the currently installed version string |
checkForNewVersion
returns the version string if there is a new
version, or NULL. notifyIfNewVersion
returns nothing invisibly, called for
its side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.