Skip to content

Commit 5e30150

Browse files
Ivann SchlosserIvann Schlosser
authored andcommitted
set of gh actions and badges
1 parent 97a8812 commit 5e30150

File tree

5 files changed

+71
-2
lines changed

5 files changed

+71
-2
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
^cran-comments\.md$
77
^doc$
88
^Meta$
9+
^\.github$

.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: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
branches: [main, master]
8+
9+
name: R-CMD-check
10+
11+
permissions: read-all
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ${{ matrix.config.os }}
16+
17+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
config:
23+
- {os: macos-latest, r: 'release'}
24+
- {os: windows-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26+
- {os: ubuntu-latest, r: 'release'}
27+
- {os: ubuntu-latest, r: 'oldrel-1'}
28+
29+
env:
30+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
31+
R_KEEP_PKG_SOURCE: yes
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: r-lib/actions/setup-pandoc@v2
37+
38+
- uses: r-lib/actions/setup-r@v2
39+
with:
40+
r-version: ${{ matrix.config.r }}
41+
http-user-agent: ${{ matrix.config.http-user-agent }}
42+
use-public-rspm: true
43+
44+
- uses: r-lib/actions/setup-r-dependencies@v2
45+
with:
46+
extra-packages: any::rcmdcheck
47+
needs: check
48+
49+
- uses: r-lib/actions/check-r-package@v2
50+
with:
51+
upload-snapshots: true
52+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

README.Rmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ author: Ivann Schlosser
33
output: github_document
44
---
55

6+
<!-- badges: start -->
7+
[![R-CMD-check](https://github.com/ischlo/cppRnet/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ischlo/cppRnet/actions/workflows/R-CMD-check.yaml)
8+
9+
![](https://github.com/ischlo/cppSim/actions/workflows/rhub.yaml/badge.svg)
10+
11+
<!-- badges: end -->
12+
613
## Introduction
714

815
This package uses the **libosmium** library in the background and proposes an opinionated way of interacting with raw OSM data. It is opinionated, because a number of assumptions are made, based on a long and sometimes frustrating experience of working with OSM data in R or python projects. The assumptions and the proposed *data schema* will be covered in a separate vignette. This part will mainly cover the setup of the package.

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
Ivann Schlosser
22

3+
<!-- badges: start -->
4+
5+
[![R-CMD-check](https://github.com/ischlo/cppRnet/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ischlo/cppRnet/actions/workflows/R-CMD-check.yaml)
6+
7+
![](https://github.com/ischlo/cppSim/actions/workflows/rhub.yaml/badge.svg)
8+
9+
<!-- badges: end -->
10+
311
## Introduction
412

513
This package uses the **libosmium** library in the background and
6-
porposes an opinionated way of interacting with raw OSM data. It is
14+
proposes an opinionated way of interacting with raw OSM data. It is
715
opinionated, because a number of assumptions are made, based on a long
816
and sometimes frustrating experience of working with OSM data in R or
9-
python projects. The assumptions and the porposed *data schema* will be
17+
python projects. The assumptions and the proposed *data schema* will be
1018
covered in a separate vignette. This part will mainly cover the setup of
1119
the package.
1220

0 commit comments

Comments
 (0)