Skip to content

Commit 1ed6cf5

Browse files
Merge pull request #49 from nutriverse/dev
update repo; fix #46; fix #47; fix #48
2 parents 5d483ca + 21be691 commit 1ed6cf5

File tree

250 files changed

+20606
-14147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+20606
-14147
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@
2323
^pkgdown$
2424
^cran-comments\.md$
2525
^CRAN-RELEASE$
26+
^CODE_OF_CONDUCT\.md$
27+
^codecov\.yml$

.github/CODE_OF_CONDUCT.md

Lines changed: 113 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,126 @@
1-
# Contributor Code of Conduct
1+
# Contributor Covenant Code of Conduct
22

3-
As contributors and maintainers of this project, and in the interest of
4-
fostering an open and welcoming community, we pledge to respect all people who
5-
contribute through reporting issues, posting feature requests, updating
6-
documentation, submitting pull requests or patches, and other activities.
3+
## Our Pledge
74

8-
We are committed to making participation in this project a harassment-free
9-
experience for everyone, regardless of level of experience, gender, gender
10-
identity and expression, sexual orientation, disability, personal appearance,
11-
body size, race, ethnicity, age, religion, or nationality.
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
1211

13-
Examples of unacceptable behavior by participants include:
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
1414

15-
* The use of sexualized language or imagery
16-
* Personal attacks
17-
* Trolling or insulting/derogatory comments
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
1833
* Public or private harassment
19-
* Publishing other's private information, such as physical or electronic
20-
addresses, without explicit permission
21-
* Other unethical or unprofessional conduct
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
2250

23-
Project maintainers have the right and responsibility to remove, edit, or
24-
reject comments, commits, code, wiki edits, issues, and other contributions
25-
that are not aligned to this Code of Conduct, or to ban temporarily or
26-
permanently any contributor for other behaviors that they deem inappropriate,
27-
threatening, offensive, or harmful.
51+
## Scope
2852

29-
By adopting this Code of Conduct, project maintainers commit themselves to
30-
fairly and consistently applying these principles to every aspect of managing
31-
this project. Project maintainers who do not follow or enforce the Code of
32-
Conduct may be permanently removed from the project team.
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
3358

34-
This Code of Conduct applies both within project spaces and in public spaces
35-
when an individual is representing the project or its community.
59+
## Enforcement
3660

3761
Instances of abusive, harassing, or otherwise unacceptable behavior may be
38-
reported by contacting a project maintainer at contact@guevarra.io. All
39-
complaints will be reviewed and investigated and will result in a response that
40-
is deemed necessary and appropriate to the circumstances. Maintainers are
41-
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
reported to the community leaders responsible for enforcement at ernest@guevarra.io.
63+
All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
113+
114+
## Attribution
42115

43116
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
44-
version 1.3.0, available at
45-
[http://contributor-covenant.org/version/1/3/0/][version]
117+
version 2.1, available at
118+
<https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.
119+
120+
Community Impact Guidelines were inspired by
121+
[Mozilla's code of conduct enforcement ladder][https://github.com/mozilla/inclusion].
122+
123+
For answers to common questions about this code of conduct, see the FAQ at
124+
<https://www.contributor-covenant.org/faq>. Translations are available at <https://www.contributor-covenant.org/translations>.
46125

47-
[homepage]: http://contributor-covenant.org
48-
[version]: http://contributor-covenant.org/version/1/3/0/
126+
[homepage]: https://www.contributor-covenant.org

.github/CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Bugs
44

5-
* Submit an issue on the [issues page](https://github.com/como-ph/oxcgrt/issues)
5+
* Submit an issue on the [issues page](https://github.com/nutriverse/nipnTK/issues)
66

77
## Code contributions
88

@@ -11,14 +11,14 @@
1111
* Clone your version on your account down to your machine from your account
1212

1313
```
14-
git clone https://github.com/<yourgithubusername>/oxcgrt.git
14+
git clone https://github.com/<yourgithubusername>/nipnTK.git
1515
```
1616

17-
* Make sure to track progress upstream i.e., on our version of `oxcgrt`
18-
at `oxcgrt/covidphdata`, by doing
17+
* Make sure to track progress upstream i.e., on our version of `nipnTK`
18+
at `nutriverse/nipnTK`, by doing
1919

2020
```
21-
git remote add upstream https://github.com/como-ph/oxcgrt.git
21+
git remote add upstream https://github.com/nutriverse/nipnTK.git
2222
```
2323

2424
* Before making changes make sure to pull changes in from `upstream` by doing
@@ -32,4 +32,4 @@ documentation
3232

3333
* Push up changes to your account
3434

35-
* Submit a pull request at `como-ph/oxcgrt`
35+
* Submit a pull request at `nutriverse/nipnTK`

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
config:
21-
- {os: macOS-latest, r: 'release'}
21+
- {os: macos-latest, r: 'release'}
2222
- {os: windows-latest, r: 'release'}
2323
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
2424
- {os: ubuntu-latest, r: 'release'}
@@ -29,7 +29,7 @@ jobs:
2929
R_KEEP_PKG_SOURCE: yes
3030

3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
3333

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

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
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
13
on:
24
push:
3-
branches:
4-
- main
5-
- master
5+
branches: [main, master]
66
pull_request:
7-
branches:
8-
- main
9-
- master
7+
branches: [main, master]
108

119
name: test-coverage
1210

1311
jobs:
1412
test-coverage:
15-
runs-on: macOS-latest
13+
runs-on: ubuntu-latest
1614
env:
1715
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
1817
steps:
19-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
2019

21-
- uses: r-lib/actions/setup-r@v1
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
use-public-rspm: true
2223

23-
- uses: r-lib/actions/setup-pandoc@v1
24+
- uses: r-lib/actions/setup-r-dependencies@v2
25+
with:
26+
extra-packages: any::covr
27+
needs: coverage
2428

25-
- name: Query dependencies
29+
- name: Test coverage
2630
run: |
27-
install.packages('remotes')
28-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
29-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
31+
covr::codecov(
32+
quiet = FALSE,
33+
clean = FALSE,
34+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
35+
)
3036
shell: Rscript {0}
3137

32-
- name: Cache R packages
33-
uses: actions/cache@v2
34-
with:
35-
path: ${{ env.R_LIBS_USER }}
36-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
37-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
38-
39-
- name: Install dependencies
38+
- name: Show testthat output
39+
if: always()
4040
run: |
41-
install.packages(c("remotes"))
42-
remotes::install_deps(dependencies = TRUE)
43-
remotes::install_cran("covr")
44-
shell: Rscript {0}
41+
## --------------------------------------------------------------------
42+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
43+
shell: bash
4544

46-
- name: Test coverage
47-
run: covr::codecov()
48-
shell: Rscript {0}
45+
- name: Upload test results
46+
if: failure()
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: coverage-test-failures
50+
path: ${{ runner.temp }}/package

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ Suggests:
3030
knitr,
3131
rmarkdown,
3232
tufte,
33-
spelling
33+
spelling,
34+
covr
3435
Encoding: UTF-8
3536
Language: en-GB
3637
LazyData: true
37-
RoxygenNote: 7.2.1
38+
RoxygenNote: 7.2.3
3839
Roxygen: list(markdown = TRUE)
3940
URL: https://nutriverse.io/nipnTK/, https://github.com/nutriverse/nipnTK
4041
BugReports: https://github.com/nutriverse/nipnTK/issues

NEWS.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
## nipnTK 0.1.1.9000
1+
# nipnTK 0.1.1.9000
22

33
Second release of `nipnTK`. This is a GitHub-only development release. In this
44
release:
55

6-
### General updates
6+
## General updates
77

88
* remove `appveyor.yml` and the Appveyor ci/cd workflow
99

1010
* update GitHub Actions workflow to latest 5 system standard check
1111

12+
* update GitHub Actions workflow for coverage testing
1213

13-
## nipnTK 0.1.0
14+
* change default git branch name from master to main
1415

15-
This is the first [CRAN](https://cran.r-project.org) release of `nipnTK`.
16+
* add CITATION
17+
18+
* update CONTRIBUTOR guidelines
19+
20+
* upgrade website to bootstrap 5
1621

1722

23+
# nipnTK 0.1.0
24+
25+
This is the first [CRAN](https://cran.r-project.org) release of `nipnTK`.
1826

README.Rmd

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ library(nipnTK)
2121

2222
<!-- Badges start here -->
2323
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
24-
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
24+
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
2525
[![CRAN](https://img.shields.io/cran/v/nipnTK.svg)](https://cran.r-project.org/package=nipnTK)
2626
[![cran checks](https://cranchecks.info/badges/summary/nipnTK)](https://cran.r-project.org/web/checks/check_results_nipnTK.html)
2727
[![CRAN](https://img.shields.io/cran/l/nipnTK.svg)](https://CRAN.R-project.org/package=nipnTK)
2828
[![CRAN](http://cranlogs.r-pkg.org/badges/nipnTK)](https://cran.r-project.org/package=nipnTK)
2929
[![CRAN](http://cranlogs.r-pkg.org/badges/grand-total/nipnTK)](https://cran.r-project.org/package=nipnTK)
30-
[![R build status](https://github.com/nutriverse/nipnTK/workflows/R-CMD-check/badge.svg)](https://github.com/nutriverse/nipnTK/actions)
31-
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/nutriverse/nipnTK?branch=master&svg=true)](https://ci.appveyor.com/project/nutriverse/nipnTK)
32-
[![R build status](https://github.com/nutriverse/nipnTK/workflows/test-coverage/badge.svg)](https://github.com/nutriverse/nipnTK/actions)
33-
[![codecov](https://codecov.io/gh/nutriverse/nipnTK/branch/master/graph/badge.svg)](https://codecov.io/gh/nutriverse/nipnTK)
30+
[![R-CMD-check](https://github.com/nutriverse/nipnTK/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/nutriverse/nipnTK/actions/workflows/R-CMD-check.yaml)
31+
[![test-coverage](https://github.com/nutriverse/nipnTK/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/nutriverse/nipnTK/actions/workflows/test-coverage.yaml)
32+
[![Codecov test coverage](https://codecov.io/gh/nutriverse/nipnTK/branch/main/graph/badge.svg)](https://app.codecov.io/gh/nutriverse/nipnTK?branch=main)
3433
[![CodeFactor](https://www.codefactor.io/repository/github/nutriverse/nipntk/badge)](https://www.codefactor.io/repository/github/nutriverse/nipntk)
3534
[![DOI](https://zenodo.org/badge/118171028.svg)](https://zenodo.org/badge/latestdoi/118171028)
3635
<!-- Badges end here -->
@@ -88,6 +87,14 @@ These activities and a proposed order in which they should be performed are show
8887
knitr::include_graphics("man/figures/nipnWorkflow.png")
8988
```
9089

90+
## Citation
91+
92+
If you find the `nipnTK` package useful, please cite using the suggested citation provided by a call to the `citation` function as follows:
93+
94+
```{r cite}
95+
citation("nipnTK")
96+
```
97+
9198
## Community guidelines
9299

93100
Feedback, bug reports and feature requests are welcome; file issues or seek support [here](https://github.com/nutriverse/nipnTK/issues). If you would like to contribute to the package, please see our [contributing guidelines](https://nutriverse.io/nipnTK/CONTRIBUTING.html).

0 commit comments

Comments
 (0)