Skip to content

Commit 501314b

Browse files
committed
Remove travis and replace with GitHub Actions for R CMD check & pkgdown
1 parent c424593 commit 501314b

File tree

11 files changed

+127
-28
lines changed

11 files changed

+127
-28
lines changed

.Rbuildignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
^README-.*\.png$
66
^cran-comments\.md$
77
^codecov\.yml$
8+
^\.github$
9+
^_pkgdown\.yml$
10+
^docs$
11+
^pkgdown$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ubuntu-latest
15+
env:
16+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17+
R_KEEP_PKG_SOURCE: yes
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: r-lib/actions/setup-r@v2
22+
with:
23+
use-public-rspm: true
24+
25+
- uses: r-lib/actions/setup-r-dependencies@v2
26+
with:
27+
extra-packages: any::rcmdcheck
28+
needs: check
29+
30+
- uses: r-lib/actions/check-r-package@v2
31+
with:
32+
upload-snapshots: true
33+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/pkgdown.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
41+
shell: Rscript {0}
42+
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/[email protected]
46+
with:
47+
clean: false
48+
branch: gh-pages
49+
folder: docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.Ruserdata
55
inst/doc
66
.DS_Store
7+
docs

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ Authors@R: c(
1111
)
1212
Description: Provides a set of user defined infix operators and functions with
1313
roots in other programming languages.
14+
URL: https://r-pkg.thecoatlessprofessor.com/rops/, https://github.com/coatless-rpkg/rops
15+
BugReports: https://github.com/coatless-rpkg/rops/issues
16+
License: MIT + file LICENSE
1417
Depends:
1518
R (>= 4.5.0)
16-
License: MIT + file LICENSE
1719
Encoding: UTF-8
1820
LazyData: true
1921
RoxygenNote: 7.3.2

README.Rmd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ knitr::opts_chunk$set(
1010
)
1111
```
1212

13+
<!-- badges: start -->
1314
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
14-
[![Travis-CI Build Status](https://travis-ci.org/coatless/rops.svg?branch=master)](https://travis-ci.org/coatless/rops)
15-
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rops)](https://cran.r-project.org/package=rops)
16-
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/rops)](http://www.r-pkg.org/pkg/rops)
17-
[![Coverage Status](https://codecov.io/github/coatless/rops/master.svg)](https://codecov.io/github/coatless/rops?branch=master)
15+
[![R-CMD-check](https://github.com/coatless-rpkg/rops/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/rops/actions/workflows/R-CMD-check.yaml)
16+
<!-- badges: end -->
1817

1918
# R Ops (`rops`)
2019

README.md

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
11

2-
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![Travis-CI Build Status](https://travis-ci.org/coatless/rops.svg?branch=master)](https://travis-ci.org/coatless/rops) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rops)](https://cran.r-project.org/package=rops) [![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/rops)](http://www.r-pkg.org/pkg/rops) [![Coverage Status](https://codecov.io/github/coatless/rops/master.svg)](https://codecov.io/github/coatless/rops?branch=master)
2+
<!-- badges: start -->
33

4-
R Ops (`rops`)
5-
==============
4+
[![Project Status: Active - The project has reached a stable, usable
5+
state and is being actively
6+
developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
7+
[![R-CMD-check](https://github.com/coatless-rpkg/rops/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/rops/actions/workflows/R-CMD-check.yaml)
8+
<!-- badges: end -->
69

7-
The objective behind this package is to provide an extension to base *R* that supplements present operators manipulations.
10+
# R Ops (`rops`)
811

9-
![Demo of Operators](https://i.imgur.com/IGMeU0J.gif)
12+
The objective behind this package is to provide an extension to base *R*
13+
that supplements present operators manipulations.
1014

11-
Supported Functionality
12-
=======================
15+
<figure>
16+
<img src="https://i.imgur.com/IGMeU0J.gif" alt="Demo of Operators" />
17+
<figcaption aria-hidden="true">Demo of Operators</figcaption>
18+
</figure>
19+
20+
# Supported Functionality
1321

1422
Presently, the package has support for the following operators:
1523

16-
- [Null coalescing operator](https://en.wikipedia.org/wiki/Null_coalescing_operator): `%??%`
17-
- Operator to allow checking and substitution if a value is null without `if`/`else` structure
18-
- Missing value (`NA`) coalescing operator: `ifna(x, y)`
19-
- Substitute value when NA is detected.
20-
- [Is Whole Number](https://en.wikipedia.org/wiki/Integer): `is_whole(x)`
21-
- Vectorized boolean operator to assess whether value is an integer.
22-
- Safe Sequence Generation: `from %:% to`, `safe_seq(from, to, by)`
23-
- Create sequences that agree with the parity of the incrementer.
24-
- Not In Set: `x %notin% table`
25-
- Check to see if an element does not belong to a set.
24+
- [Null coalescing
25+
operator](https://en.wikipedia.org/wiki/Null_coalescing_operator):
26+
`%??%`
27+
- Operator to allow checking and substitution if a value is null
28+
without `if`/`else` structure
29+
- Missing value (`NA`) coalescing operator: `ifna(x, y)`
30+
- Substitute value when NA is detected.
31+
- [Is Whole Number](https://en.wikipedia.org/wiki/Integer):
32+
`is_whole(x)`
33+
- Vectorized boolean operator to assess whether value is an integer.
34+
- Safe Sequence Generation: `from %:% to`, `safe_seq(from, to, by)`
35+
- Create sequences that agree with the parity of the incrementer.
36+
- Not In Set: `x %notin% table`
37+
- Check to see if an element does not belong to a set.

_pkgdown.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
url: https://r-pkg.thecoatlessprofessor.com/rops/
2+
template:
3+
bootstrap: 5
4+

0 commit comments

Comments
 (0)