-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
101 additions
and
117 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
kimisc [![wercker status](https://app.wercker.com/status/956d581f6bb8958ec85fd7d2585d138b/s/master "wercker status")](https://app.wercker.com/project/bykey/956d581f6bb8958ec85fd7d2585d138b) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/krlmlr/kimisc?branch=master)](https://ci.appveyor.com/project/krlmlr/kimisc) [![codecov.io](https://codecov.io/github/krlmlr/kimisc/coverage.svg?branch=master)](https://codecov.io/github/krlmlr/kimisc?branch=master) | ||
kimisc [![CRAN](http://www.r-pkg.org/badges/version/kimisc)](https://cran.rstudio.com/web/packages/kimisc/) | ||
====== | ||
|
||
A collection of useful functions not found anywhere else. Install from CRAN using | ||
A collection of useful functions not found anywhere else. | ||
|
||
`master`: [![wercker status](https://app.wercker.com/status/956d581f6bb8958ec85fd7d2585d138b/s/master "wercker status")](https://app.wercker.com/project/bykey/956d581f6bb8958ec85fd7d2585d138b) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/krlmlr/kimisc?branch=master&svg=true)](https://ci.appveyor.com/project/krlmlr/kimisc) [![codecov.io](https://codecov.io/github/krlmlr/kimisc/coverage.svg?branch=master)](https://codecov.io/github/krlmlr/kimisc?branch=master) [![GitHub release](https://img.shields.io/github/release/krlmlr/kimisc.svg)](https://github.com/krlmlr/kimisc/releases) | ||
|
||
`develop`: [![wercker status](https://app.wercker.com/status/956d581f6bb8958ec85fd7d2585d138b/s/develop "wercker status")](https://app.wercker.com/project/bykey/956d581f6bb8958ec85fd7d2585d138b) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/krlmlr/kimisc?branch=develop&svg=true)](https://ci.appveyor.com/project/krlmlr/kimisc) [![codecov.io](https://codecov.io/github/krlmlr/kimisc/coverage.svg?branch=develop)](https://codecov.io/github/krlmlr/kimisc?branch=develop) | ||
|
||
|
||
## Installation | ||
|
||
``` | ||
install.packages('kimisc') | ||
``` | ||
|
||
or the lastest development version (with `devtools` 1.4 or later) | ||
or the latest stable version using | ||
|
||
``` | ||
devtools::install_github('krlmlr/kimisc') | ||
``` | ||
|
||
or the most recent development version using | ||
|
||
``` | ||
devtools::install_github('krlmlr/kimisc@develop') | ||
``` |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env Rscript | ||
|
||
library(magrittr) | ||
repo <- git2r::repository() | ||
branch_name <- (git2r::branches(repo) %>% Filter(git2r::is_head, .) %>% extract2(1))@name | ||
version <- gsub("^.*/([^/]*)$", "\\1", branch_name) | ||
package_version(version) | ||
desc <- read.dcf("DESCRIPTION") | ||
desc[, "Version"] <- version | ||
date <- Sys.Date() | ||
desc[, "Date"] <- date | ||
write.dcf(desc, "DESCRIPTION") | ||
git2r::add(repo, "DESCRIPTION") | ||
git2r::commit(repo, paste("bump version to", version)) | ||
|
||
news <- readLines("NEWS.md") | ||
news <- c(paste0("Version ", version, " (", date, ")"), "===", "", "", "", news) | ||
writeLines(news, "NEWS.md") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env Rscript | ||
|
||
devtools::install() | ||
autoroxy::rox_off() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env Rscript | ||
|
||
autoroxy::rox_on() | ||
|
||
library(magrittr) | ||
repo <- git2r::repository() | ||
branch_name <- (git2r::branches(repo) %>% Filter(git2r::is_head, .) %>% extract2(1))@name | ||
version <- gsub("^.*/([^/]*)$", "\\1", branch_name) | ||
package_version(version) | ||
desc <- read.dcf("DESCRIPTION") | ||
desc[, "Version"] <- version | ||
date <- Sys.Date() | ||
desc[, "Date"] <- date | ||
write.dcf(desc, "DESCRIPTION") | ||
git2r::add(repo, "DESCRIPTION") | ||
git2r::commit(repo, paste("bump version to", version)) | ||
|
||
news <- readLines("NEWS.md") | ||
news <- c(paste0("Version ", version, " (", date, ")"), "===", "", "", "", news) | ||
writeLines(news, "NEWS.md") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# Runs before git flow release finish | ||
# | ||
# Positional arguments: | ||
# $1 The version (including the version prefix) | ||
# $2 The origin remote | ||
# $3 The full branch name (including the release prefix) | ||
# | ||
# The following variables are available as they are exported by git-flow: | ||
# | ||
# MASTER_BRANCH - The branch defined as Master | ||
# DEVELOP_BRANCH - The branch defined as Develop | ||
# | ||
VERSION=$1 | ||
ORIGIN=$2 | ||
BRANCH=$3 | ||
|
||
# Implement your script here. | ||
|
||
set -e | ||
hub ci-status -v |
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
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
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