This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Looks in the CRAN archive for the specified package and version. If | |
# the specified version is NULL or the same as the most recent version | |
# of the package, this function simply calls install.packages(). Otherwise, | |
# it looks at the list of archived source tarballs and tries to install | |
# an older version instead. | |
install.package.version <- function( | |
package, | |
version = NULL, | |
repos = getOption('repos'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### with new branch | |
# get into the master branch | |
git checkout master | |
# create a new branch for the changes and check it out | |
git checkout -b dev_branch | |
# stash the changes until we revert master | |
git stash |