Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions R/add_github_action.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#'
#' @param gha_name Short name of GitHub Action to add. Currently supports
#' GitHub Action for Netlify deployment of testing version of pkgdown website
#' (*"netlify"*) and GitHub Action for mirroring to Codeberg
#' (*"mirror-codeberg"*).
#' (*"netlify"*), GitHub Action for mirroring to Codeberg
#' (*"mirror-codeberg"*), and GitHub Action for R-universe testing
#' (*"r-universe-test"*).
#' @param overwrite Logical. Should an existing GitHub Action be overwritten?
#' Default is FALSE.
#' @param repo Short remote git repository name. If NULL, is determined based
Expand Down Expand Up @@ -94,7 +95,8 @@ choose_gha_workflow <- function(gha_name) {

workflows <- c(
"netlify" = "Preview pkgdown website on pull request via Netlify",
"mirror-codeberg" = "Mirror repository to Codeberg"
"mirror-codeberg" = "Mirror repository to Codeberg",
"r-universe-test" = "Test R-universe"
)

options <- paste0(cli::style_bold(names(workflows)), ": ", workflows)
Expand Down
13 changes: 10 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ Currently, `{pakete}` includes functions for:

5. adding [Zenodo](https://zenodo.org/) DOI badge; and,

6. adding specific GitHub Actions such as test deployment of package website to [Netlify](https://www.netlify.com/) and mirroring of repository to [Codeberg](https://codeberg.org/).
6. adding specific GitHub Actions such as test deployment of package website to [Netlify](https://www.netlify.com/), mirroring of repository to [Codeberg](https://codeberg.org/), and [R Universe](https://ropensci.org/blog/2026/01/03/r-universe-workflows/) testing.

## Installation

You can install `{pakete}` via the [Katilingban R Universe](https://katilingban.r-universe.dev) as follows:

```{r install-r-universe, eval = FALSE}
```R
install.packages(
"pakete",
repos = c(
Expand All @@ -56,6 +56,13 @@ install.packages(
)
```

You can also install `{pakete}` from [GitHub](https://github.com/katilingban/pakete) using the `{pak}` package with:

```R
if (!require("pak")) install.packages("pak")
pak::pak("katilingban/pakete")
```

## Usage

### Creating GitHub issues checklist template for CRAN submissions
Expand Down Expand Up @@ -106,7 +113,7 @@ This will add a Zenodo badge to your README file in the block were badges are us

## Citation

If you find the `{pakete}` package useful please cite using the suggested citation provided by a call to the `citation()` function as follows:
If you use the `{pakete}` package in your work, please cite using the suggested citation provided by a call to the `citation()` function as follows:

```{r citation}
citation("pakete")
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ Currently, `{pakete}` includes functions for:
5. adding [Zenodo](https://zenodo.org/) DOI badge; and,

6. adding specific GitHub Actions such as test deployment of package
website to [Netlify](https://www.netlify.com/) and mirroring of
repository to [Codeberg](https://codeberg.org/).
website to [Netlify](https://www.netlify.com/), mirroring of
repository to [Codeberg](https://codeberg.org/), and [R
Universe](https://ropensci.org/blog/2026/01/03/r-universe-workflows/)
testing.

## Installation

Expand All @@ -56,6 +58,15 @@ install.packages(
)
```

You can also install `{pakete}` from
[GitHub](https://github.com/katilingban/pakete) using the `{pak}`
package with:

``` r
if (!require("pak")) install.packages("pak")
pak::pak("katilingban/pakete")
```

## Usage

### Creating GitHub issues checklist template for CRAN submissions
Expand Down Expand Up @@ -149,7 +160,7 @@ relation to the Zenodo release URL.

## Citation

If you find the `{pakete}` package useful please cite using the
If you use the `{pakete}` package in your work, please cite using the
suggested citation provided by a call to the `citation()` function as
follows:

Expand Down
12 changes: 12 additions & 0 deletions inst/actions/r-universe-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Test R-universe

on:
push:
pull_request:

jobs:
build:
name: R-universe testing
uses: r-universe-org/workflows/.github/workflows/build.yml@v3
with:
universe: ${{ github.repository_owner }}
5 changes: 3 additions & 2 deletions man/add_github_action.Rd

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