diff --git a/DESCRIPTION b/DESCRIPTION
index 9aaa9b7..14fe859 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -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.
@@ -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
diff --git a/NAMESPACE b/NAMESPACE
index 5985921..8b12ac2 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -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)
diff --git a/NEWS.md b/NEWS.md
index 4f08949..3c3b5b2 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,9 @@
+# [kwb.pkgstatus 0.3.0](https://github.com/KWB-R/kwb.pkgstatus/releases/tag/v0.3.0)2021-07-13
+
+* 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)2021-02-23
* Adapt status overview (use Github Actions workflow!)
diff --git a/R/prepare_status_rpackages.R b/R/prepare_status_rpackages.R
index 252eedf..d05b72e 100644
--- a/R/prepare_status_rpackages.R
+++ b/R/prepare_status_rpackages.R
@@ -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
@@ -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),
@@ -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
diff --git a/README.md b/README.md
index 230ba93..5f3aa6e 100644
--- a/README.md
+++ b/README.md
@@ -3,15 +3,30 @@
[](https://codecov.io/github/KWB-R/kwb.pkgstatus)
[](https://www.tidyverse.org/lifecycle/#experimental)
[]()
+[](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")
```
diff --git a/_pkgdown.yml b/_pkgdown.yml
index 5d8d9c8..033a7e3 100644
--- a/_pkgdown.yml
+++ b/_pkgdown.yml
@@ -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:
Kompetenzzentrum Wasser Berlin gGmbH (KWB):
- href: http://www.kompetenz-wasser.de
+ href: https://www.kompetenz-wasser.de
html:
template:
diff --git a/index.md b/index.md
index 65ce833..80be9b9 100644
--- a/index.md
+++ b/index.md
@@ -1,15 +1,29 @@
[](https://github.com/KWB-R/kwb.pkgstatus/actions?query=workflow%3AR-CMD-check)
[](https://github.com/KWB-R/kwb.pkgstatus/actions?query=workflow%3Apkgdown)
-[](https://codecov.io/github/KWB-R/kwb.pkgstatus)
+[](https://codecov.io/github/KWB-R/kwb.pkgstatus)
[](https://www.tidyverse.org/lifecycle/#experimental)
[]()
+[](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")
-```
\ No newline at end of file
+```