Skip to content

Commit

Permalink
Merge pull request #6 from KWB-R/dev
Browse files Browse the repository at this point in the history
Release v0.3.0
  • Loading branch information
mrustl authored Jul 12, 2021
2 parents 1521791 + fddd24e commit 4f8f210
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 11 deletions.
11 changes: 9 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
Package: kwb.pkgstatus
Title: R package for checking KWB package status
Version: 0.2.0
Version: 0.3.0
Authors@R:
c(person(given = "Michael",
family = "Rustler",
role = c("aut", "cre"),
email = "michael.rustler@kompetenz-wasser.de",
comment = c(ORCID = "0000-0003-0647-7726")),
person(given = "Hauke",
family = "Sonnenberg",
role = "ctb",
email = "hauke.sonnenberg@kompetenz-wasser.de",
comment = c(ORCID = "0000-0001-9134-2871")),
person(given = "FAKIN",
role = "fnd"),
person(given = "Kompetenzzentrum Wasser Berlin gGmbH (KWB)",
role = "cph"))
Description: R package for checking KWB package status (e.g.
Expand All @@ -33,7 +40,7 @@ Suggests:
VignetteBuilder:
knitr
Remotes:
github::kwb-r/kwb.pkgbuild@v0.1.7
github::kwb-r/kwb.pkgbuild
ByteCompile: true
Encoding: UTF-8
LazyData: true
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ importFrom(httr,status_code)
importFrom(jsonlite,fromJSON)
importFrom(kwb.pkgbuild,use_badge_ghactions_pkgdown)
importFrom(kwb.pkgbuild,use_badge_ghactions_rcmdcheck)
importFrom(kwb.pkgbuild,use_badge_runiverse)
importFrom(lubridate,as_datetime)
importFrom(magrittr,"%>%")
importFrom(stringr,str_detect)
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [kwb.pkgstatus 0.3.0](https://github.com/KWB-R/kwb.pkgstatus/releases/tag/v0.3.0)<small>2021-07-13</small>

* Add `Released_on_R-Universe` (based on `kwb.pkgbuild::use_badge_runiverse()`
for linking to [https://kwb-r.r-universe.dev](https://kwb-r.r-universe.dev))
if package is available

# [kwb.pkgstatus 0.2.0](https://github.com/KWB-R/kwb.pkgstatus/releases/tag/v0.2.0)<small>2021-02-23</small>

* Adapt status overview (use Github Actions workflow!)
Expand Down
9 changes: 8 additions & 1 deletion R/prepare_status_rpackages.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ check_all_tokens_set <- function() {
#' @param non_r_packages a character vector with repositories in KWB-R group that
#' are not R packages (default: \code{get_non_r_packages})
#' @importFrom dplyr filter_ left_join
#' @importFrom kwb.pkgbuild use_badge_ghactions_rcmdcheck use_badge_ghactions_pkgdown
#' @importFrom kwb.pkgbuild use_badge_ghactions_rcmdcheck use_badge_ghactions_pkgdown
#' use_badge_runiverse
#' @importFrom utils read.csv
#' @return data.frame with R package status information
#' @export
Expand Down Expand Up @@ -76,6 +77,11 @@ build_doc_release <- as.vector(sapply(repo_infos$name, function(repo) {
build_doc_dev <- as.vector(sapply(repo_infos$name, function(repo) {
kwb.pkgbuild::use_badge_ghactions_pkgdown(repo, branch = "dev")
}))

badge_runiverse <- as.vector(sapply(repo_infos$name, function(repo) {
kwb.pkgbuild::use_badge_runiverse(repo)
}))


meta_info <- data.frame(License_Badge = badge_license(repo_infos$license_key),
Dependencies = badge_dependencies(repo_infos$name),
Expand All @@ -84,6 +90,7 @@ Build_Pkg_Release = build_pkg_release,
Build_Pkg_Dev = build_pkg_dev,
Build_Doc_Release = build_doc_release,
Build_Doc_Dev = build_doc_dev,
`Released_on_R-Universe` = badge_runiverse,
### Avoid issue with CRAN R packages badges
### (no problem if PANDOC version >= 2.2.1)
### https://github.com/rstudio/rmarkdown/issues/228
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,30 @@
[![codecov](https://codecov.io/github/KWB-R/kwb.pkgstatus/branch/master/graphs/badge.svg)](https://codecov.io/github/KWB-R/kwb.pkgstatus)
[![Project Status](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/kwb.pkgstatus)]()
[![R-Universe_Status_Badge](https://kwb-r.r-universe.dev/badges/kwb.pkgstatus)](https://kwb-r.r-universe.dev/)

# kwb.pkgstatus

R package for checking KWB package status (e.g. generating https://kwb-r.github.io/status)
R package for checking KWB package status (e.g.
generating https://kwb-r.github.io/status).

## Installation

For details on how to install KWB-R packages checkout our [installation tutorial](https://kwb-r.github.io/kwb.pkgbuild/articles/install.html).

```r
#install.packages("remotes", repos = "https://cloud.r-project.org")
### Optionally: specify GitHub Personal Access Token (GITHUB_PAT)
### See here why this might be important for you:
### https://kwb-r.github.io/kwb.pkgbuild/articles/install.html#set-your-github_pat

# Sys.setenv(GITHUB_PAT = "mysecret_access_token")

# Install package "remotes" from CRAN
if (! require("remotes")) {
install.packages("remotes", repos = "https://cloud.r-project.org")
}

# Install KWB package 'kwb.pkgstatus' from GitHub
remotes::install_github("KWB-R/kwb.pkgstatus")
```

Expand Down
8 changes: 7 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
authors:
Michael Rustler:
href: https://mrustl.de
Hauke Sonnenberg:
href: https://github.com/hsonne
FAKIN:
href: https://www.kompetenz-wasser.de/en/project/fakin/
html: <img src='https://www.kompetenz-wasser.de/wp-content/uploads/2017/08/forschung-headerbild_fakin-2-1920x449.jpg'
height='24' />
Kompetenzzentrum Wasser Berlin gGmbH (KWB):
href: http://www.kompetenz-wasser.de
href: https://www.kompetenz-wasser.de
html: <img src='http://www.kompetenz-wasser.de/wp-content/uploads/2017/08/cropped-logo-kwb_klein-new.png'
height='24' />
template:
Expand Down
24 changes: 19 additions & 5 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
[![R-CMD-check](https://github.com/KWB-R/kwb.pkgstatus/workflows/R-CMD-check/badge.svg)](https://github.com/KWB-R/kwb.pkgstatus/actions?query=workflow%3AR-CMD-check)
[![pkgdown](https://github.com/KWB-R/kwb.pkgstatus/workflows/pkgdown/badge.svg)](https://github.com/KWB-R/kwb.pkgstatus/actions?query=workflow%3Apkgdown)
[![codecov](https://codecov.io/github/KWB-R/kwb.pkgstatus/branch/master/graphs/badge.svg)](https://codecov.io/github/KWB-R/kwb.pkgstatus)
[![codecov](https://codecov.io/github/KWB-R/kwb.pkgstatus/branch/main/graphs/badge.svg)](https://codecov.io/github/KWB-R/kwb.pkgstatus)
[![Project Status](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/kwb.pkgstatus)]()
[![R-Universe_Status_Badge](https://kwb-r.r-universe.dev/badges/kwb.pkgstatus)](https://kwb-r.r-universe.dev/)


R package for checking KWB package status (e.g. generating https://kwb-r.github.io/status)
R package for checking KWB package status (e.g.
generating https://kwb-r.github.io/status).

## Installation

For details on how to install KWB-R packages checkout our [installation tutorial](https://kwb-r.github.io/kwb.pkgbuild/articles/install.html).

```r
#install.packages("remotes", repos = "https://cloud.r-project.org")
### Optionally: specify GitHub Personal Access Token (GITHUB_PAT)
### See here why this might be important for you:
### https://kwb-r.github.io/kwb.pkgbuild/articles/install.html#set-your-github_pat

# Sys.setenv(GITHUB_PAT = "mysecret_access_token")

# Install package "remotes" from CRAN
if (! require("remotes")) {
install.packages("remotes", repos = "https://cloud.r-project.org")
}

# Install KWB package 'kwb.pkgstatus' from GitHub
remotes::install_github("KWB-R/kwb.pkgstatus")
```
```

0 comments on commit 4f8f210

Please sign in to comment.