Skip to content

Commit

Permalink
github check, webpage (close #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
BERENZ committed Nov 5, 2023
1 parent be3c811 commit 12e5b2e
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .Rproj.user/E3DB6272/pcs/source-pane.pper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"activeTab": 1,
"activeTab": 3,
"activeTabSourceWindow0": 0
}
2 changes: 1 addition & 1 deletion .Rproj.user/E3DB6272/pcs/workbench-pane.pper
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"TabSet1": 3,
"TabSet2": 3,
"TabSet2": 0,
"TabZoom": {}
}
2 changes: 2 additions & 0 deletions .Rproj.user/E3DB6272/sources/prop/INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
~%2Fgit%2Fnauka%2Fncn-foreigners%2Fsoftware%2Fblocking%2Finst%2Ftinytest%2Ftest_blocking.R="E20BF99F"
~%2Fgit%2Fnauka%2Fncn-foreigners%2Fsoftware%2Fblocking%2Fplayground%2Ftesting-package.R="B39F586D"
~%2Fgit%2Fnauka%2Fncn-foreigners%2Fsoftware%2Fblocking%2Ftests%2Ftinytest.R="49387E76"
~%2Fgit%2Fnauka%2Fncn-foreigners%2Fsoftware%2Fblocking%2Fvignettes%2Fv1-deduplication.Rmd="0DDC09E2"
~%2Fgit%2Fnauka%2Fncn-foreigners%2Fsoftware%2Fblocking%2Fvignettes%2Fv2-reclin.Rmd="59CC71B7"
2 changes: 2 additions & 0 deletions .Rproj.user/shared/notebooks/paths
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
/Users/berenz/git/nauka/ncn-foreigners/software/blocking/inst/tinytest/test_blocking.R="D28789B6"
/Users/berenz/git/nauka/ncn-foreigners/software/blocking/playground/testing-package.R="4956C0E9"
/Users/berenz/git/nauka/ncn-foreigners/software/blocking/tests/tinytest.R="0A24625C"
/Users/berenz/git/nauka/ncn-foreigners/software/blocking/vignettes/v1-deduplication.Rmd="50261E1C"
/Users/berenz/git/nauka/ncn-foreigners/software/blocking/vignettes/v2-reclin.Rmd="101F7D66"
49 changes: 49 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.Ruserdata
playground
docs
inst/doc
7 changes: 5 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ Imports:
data.table,
methods
Suggests:
tinytest,
reclin2
tinytest,
reclin2,
knitr,
rmarkdown
VignetteBuilder: knitr
6 changes: 4 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
output: github_document
---


<!-- badges: start -->
[![R-CMD-check](https://github.com/ncn-foreigners/blocking/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ncn-foreigners/blocking/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
Expand Down
2 changes: 2 additions & 0 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.html
*.R
19 changes: 19 additions & 0 deletions vignettes/v1-deduplication.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "v1-deduplication"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{v1-deduplication}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

```{r setup}
library(blocking)
```
19 changes: 19 additions & 0 deletions vignettes/v2-reclin.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "v2-reclin"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{v2-reclin}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

```{r setup}
library(blocking)
```

0 comments on commit 12e5b2e

Please sign in to comment.