Skip to content

Commit

Permalink
Merge pull request #12 from KWB-R/dev
Browse files Browse the repository at this point in the history
Release v0.2.0
  • Loading branch information
mrustl authored Jun 1, 2022
2 parents 76c103f + 18bf310 commit d64562d
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 61 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
^index\.md$
^README\.md$
^codemeta\.json$
^\.github$
7 changes: 5 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: '4.0'}
- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: 'oldrel'}
- {os: windows-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.MY_PUBLIC_PAT }}
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

Expand Down Expand Up @@ -64,7 +67,7 @@ jobs:
shell: Rscript {0}

- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--ignore-vignettes", "--no-build-vignettes"), build_args = c("--no-manual", "--ignore-vignettes", "--no-build-vignettes"), error_on = "error", check_dir = "check")
shell: Rscript {0}

- name: Upload check results
Expand Down
54 changes: 26 additions & 28 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,61 +1,59 @@
Package: pkgmeta
Title: R Package for Meta-Analysis of KWB-R Packages on Github
Version: 0.1.0.9000
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 = "Kompetenzzentrum Wasser Berlin gGmbH (KWB)",
role = "cph"))
Description: R Package for meta-analysis of KWB-R packages on
Github. It is a wrapper to the R packages 'codemetar' and 'pkgnet' for
providing insights into the development of the R packages on Github.
Version: 0.2.0
Authors@R: c(
person("Michael", "Rustler", , "michael.rustler@kompetenz-wasser.de", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-0647-7726")),
person("Hauke", "Sonnenberg", , "hauke.sonnenberg@kompetenz-wasser.de", role = "ctb",
comment = c(ORCID = "0000-0001-9134-2871")),
person("FAKIN", role = "fnd"),
person("Kompetenzzentrum Wasser Berlin gGmbH (KWB)", role = "cph")
)
Description: R Package for meta-analysis of KWB-R packages on Github. It
is a wrapper to the R packages 'codemetar' and 'pkgnet' for providing
insights into the development of the R packages on Github.
License: MIT + file LICENSE
URL: https://github.com/KWB-R/pkgmeta
BugReports: https://github.com/KWB-R/pkgmeta/issues
Imports:
codemetar,
dplyr,
forcats,
ggplot2,
gh,
lubridate,
glue,
jsonlite,
kwb.pkgstatus,
kwb.utils,
stringr,
withr,
scales,
purrr,
fs,
ggplot2,
glue,
forcats,
dplyr,
lubridate,
magrittr,
packrat,
plotly,
purrr,
remotes,
rversions,
magrittr,
stringr,
tibble,
tidyr
tidyr,
withr
Suggests:
covr,
knitr,
htmlwidgets,
rmarkdown,
jsonld,
knitr,
pkgnet,
printr,
rmarkdown,
sessioninfo,
wordcloud2
VignetteBuilder:
knitr
Remotes:
github::Lchiffon/wordcloud2,
github::kwb-r/kwb.pkgstatus,
github::kwb-r/kwb.utils,
github::Lchiffon/wordcloud2,
github::ropensci/codemetar@v0.3.0,
github::UptakeOpenSource/pkgnet@d1e974de299d46e71b082e027a71b8b254edc9b2
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2018-2020 Kompetenzzentrum Wasser Berlin gGmbH (KWB)
Copyright (c) 2018-2022 Kompetenzzentrum Wasser Berlin gGmbH (KWB)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2018-2020 Kompetenzzentrum Wasser Berlin gGmbH (KWB)
Copyright (c) 2018-2022 Kompetenzzentrum Wasser Berlin gGmbH (KWB)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [pkgmeta 0.2.0](https://github.com/KWB-R/pkgmeta/releases/tag/v0.2.0) <small>2022-06-01</small>

* Harmonise with [kwb.pkgbuild](https://github.com/kwb-r/kwb.pkgbuild)

# pkgmeta 0.1.0

* first release on Zenodo
Expand Down
2 changes: 1 addition & 1 deletion R/get_pkg_dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @param pkgs character vector with package names
#' @param library_path character vector with path(s) to R library (default: .libPaths())
#' @param dbg logical if debug should be shown (default: TRUE)
#' @param ... additional arguments passed to \link[packrat]{getPackageDependencies}
#' @param ... additional arguments passed to packrat:::getPackageDependencies()
#' @return list with package dependencies
#' @importFrom stats setNames
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/get_recursive_pkg_dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @param pkgs character vector with package names
#' @param library_path character vector with path(s) to R library (default: .libPaths())
#' @param dbg logical if debug should be shown (default: TRUE)
#' @param ... additional arguments passed to \link[packrat]{getPackageDependencies}
#' @param ... additional arguments passed to packrat:::getPackageDependencies()
#' @return list with recursive package dependencies
#' @importFrom stats setNames
#' @export
Expand Down
6 changes: 3 additions & 3 deletions R/plot_r_releases.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ get_r_releases <- function(releases = rversions::r_versions(dots = TRUE)) {
dplyr::mutate(patch = dplyr::if_else(is.na(.data$patch), 0L, as.integer(.data$patch)),
major = as.integer(.data$major),
minor = as.integer(.data$minor),
diff.major = major - dplyr::lag(.data$major, n = 1L),
diff.minor = minor - dplyr::lag(.data$minor, n = 1L),
diff.patch = patch - dplyr::lag(.data$patch, n = 1L),
diff.major = .data$major - dplyr::lag(.data$major, n = 1L),
diff.minor = .data$minor - dplyr::lag(.data$minor, n = 1L),
diff.patch = .data$patch - dplyr::lag(.data$patch, n = 1L),
release_type = dplyr::if_else(.data$diff.major > 0,
"Major",
dplyr::if_else(.data$diff.minor > 0,
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
[![codecov](https://codecov.io/github/KWB-R/pkgmeta/branch/main/graphs/badge.svg)](https://codecov.io/github/KWB-R/pkgmeta)
[![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/pkgmeta)]()
[![R-Universe_Status_Badge](https://kwb-r.r-universe.dev/badges/pkgmeta)](https://kwb-r.r-universe.dev/)
[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.3604092.svg)](10.5281/zenodo.3604092)

# pkgmeta

Expand Down
29 changes: 20 additions & 9 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
url: https://kwb-r.github.io/pkgmeta
authors:
Michael Rustler:
href: http://mrustl.de
href: https://mrustl.de
Hauke Sonnenberg:
href: https://github.com/hsonne
FAKIN:
href: https://www.kompetenz-wasser.de/en/forschung/projekte/fakin
html: <img src='https://old.kompetenz-wasser.de/wp-content/uploads/2017/08/forschung-headerbild_fakin-2-1920x449.jpg'
alt='Project FAKIN' width='72' />
Kompetenzzentrum Wasser Berlin gGmbH (KWB):
href: http://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' />
href: https://www.kompetenz-wasser.de
html: <img src='https://publications.kompetenz-wasser.de/img/KWB-Logo.svg'
alt='KWB' width='72' />

template:
params:
bootswatch: cerulean
docsearch:
api_key: 38d84b8fc2ffc9261cc5cb2e13fc8ef5
index_name: kwb_pkgmeta
bootstrap: 5
bootswatch: cerulean
bslib:
bg: "#ffffff"
fg: "#000000"
primary: "#007aff"
border-radius: 0.5rem
btn-border-radius: 0.25rem
development:
mode: auto

27 changes: 15 additions & 12 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,30 @@
[![codecov](https://codecov.io/github/KWB-R/pkgmeta/branch/main/graphs/badge.svg)](https://codecov.io/github/KWB-R/pkgmeta)
[![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/pkgmeta)]()
[![R-Universe_Status_Badge](https://kwb-r.r-universe.dev/badges/pkgmeta)](https://kwb-r.r-universe.dev/)
[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.3604092.svg)](10.5281/zenodo.3604092)

R Package for meta-analysis of KWB-R packages on
Github. It is a wrapper to the R packages 'codemetar' and 'pkgnet' for
providing insights into the development of the R packages on Github.

## Installation

For details on how to install KWB-R packages checkout our [installation tutorial](https://kwb-r.github.io/kwb.pkgbuild/articles/install.html).
For installing the latest release of this R package run the following code below:

```r
### 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
# Enable repository from kwb-r
options(repos = c(
kwbr = 'https://kwb-r.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))

# Download and install pkgmeta in R
install.packages('pkgmeta')

# Sys.setenv(GITHUB_PAT = "mysecret_access_token")
# Browse the pkgmeta manual pages
help(package = 'pkgmeta')
```

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

# Install KWB package 'pkgmeta' from GitHub
remotes::install_github("KWB-R/pkgmeta")
```
Checkout the available [articles](articles/) on how to use this R package.
2 changes: 1 addition & 1 deletion man/get_pkg_dependencies.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_recursive_pkg_dependencies.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/visualisation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cat("[Overview of R releases](../r_releases.html)")
### Temporal Development


```{r, eval = TRUE, fig.height = 9, fig.width = 7}
```{r, eval = TRUE, fig.height = 13, fig.width = 7}
#pkgmeta::get_gh_ratelimit()
pkgs <- pkgmeta::get_github_packages()
Expand Down

0 comments on commit d64562d

Please sign in to comment.