You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,7 @@ When bumping the version in `DESCRIPTION`, add a new section to `NEWS.md` with t
80
80
-`validate_codecheck_yml_crossref()` - Validates paper metadata against CrossRef API; compares title and author information with CrossRef data
81
81
-`validate_codecheck_yml_orcid()` - Validates author and codechecker names against ORCID API; queries ORCID records using rorcid package; compares names in ORCID records with local metadata; requires ORCID authentication by default (set `skip_on_auth_error = TRUE` to skip validation when authentication is unavailable)
82
82
-`validate_contents_references()` - Comprehensive validation wrapper; runs both CrossRef and ORCID validations; provides unified summary; supports strict mode for certificate rendering; requires ORCID authentication by default (users can opt-in to skipping via `skip_on_auth_error = TRUE`)
83
+
-`validate_certificate_github_issue()` - Validates certificate identifier exists in GitHub register issues; checks issue state (warns if closed) and assignment (warns if unassigned); stops with error if no matching issue found; supports strict mode where warnings become errors; automatically skips validation for placeholder certificates (R/validation.R:1204)
83
84
84
85
**Zenodo integration**: Functions for uploading certificates to Zenodo:
Copy file name to clipboardExpand all lines: NEWS.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,15 @@
1
1
# codecheck (development version)
2
2
3
+
## GitHub Issue Validation
4
+
5
+
***New validation function**: Added `validate_certificate_github_issue()` to verify that certificate identifiers exist in the codecheckers/register GitHub repository
6
+
***Issue state checking**: Warns if the certificate's GitHub issue is closed (indicating the CODECHECK is already complete and published)
7
+
***Assignment validation**: Warns if the certificate's GitHub issue is unassigned (no codechecker assigned yet)
8
+
***Strict mode**: Optional strict mode (`strict = TRUE`) treats warnings as errors, stopping certificate processing if issues are found
9
+
***Placeholder handling**: Automatically skips validation for placeholder certificate identifiers
10
+
***Comprehensive error handling**: Provides clear error messages for missing issues, API rate limits, and authentication problems
11
+
***GitHub Actions integration**: Updated R-CMD-check workflow to include GITHUB_PAT token for API access during testing
12
+
3
13
## ORCID Validation Improvements
4
14
5
15
***Graceful authentication handling**: ORCID validation functions now handle authentication failures gracefully with clear error messages instead of requiring interactive login
`codecheck` is an assistant for conducting CODECHECKs, written in the R language and distributed as an R package.
25
-
The goal of codecheck is to ease the process to create a CODECHECK-ready workspace, and to conduct the actual CODECHECK.
26
-
Furthermore, the package contains some helper functions for managing the [CODECHECK register](https://codecheck.org.uk/register/).
24
+
`codecheck` is an R package to assist codecheckers in creating CODECHECK-ready workspaces and conducting codechecks. This package focuses on the technical workflow for codecheckers using R. It also contains helper functions for managing the [CODECHECK register](https://codecheck.org.uk/register/).
27
25
28
-
**Learn more about CODECHECK on [https://codecheck.org.uk/](https://codecheck.org.uk/).**
26
+
For general information about the CODECHECK initiative and community processes, visit [https://codecheck.org.uk/](https://codecheck.org.uk/).
29
27
30
28
## Installation
31
29
32
30
The package is not on [CRAN](https://CRAN.R-project.org) yet.
33
-
Install the development version from [GitHub](https://github.com/codecheckers/codecheck) with:
31
+
Install the current version from [GitHub](https://github.com/codecheckers/codecheck) with:
34
32
35
33
```r
36
34
# install.packages("remotes")
37
35
remotes::install_github("codecheckers/codecheck")
38
36
```
39
37
38
+
## Quick Start
39
+
40
+
For first-time codecheckers using this R package:
41
+
42
+
1.**Fork the research repository** - Fork to the [codecheckers organization](https://github.com/codecheckers) on GitHub
43
+
2.**Clone and navigate to the repository root** - Run R from the top-level directory of the research project
44
+
3.**Create CODECHECK files** - Run `codecheck::create_codecheck_files()` to generate:
45
+
- A `codecheck.yml` configuration file with metadata (certificate ID, authors, manifest, etc.)
46
+
- A `codecheck/` directory with report templates
47
+
4.**Define the manifest** - List all computational outputs (figures, tables, data files) that you've successfully reproduced in the `manifest` section of `codecheck.yml`
48
+
5.**Complete the certificate** - Fill in the report template and render it
49
+
6.**Create a record on Zenodo** (or OSF, or ResearchEquals) and submit the draft for feedback to your CODECHECK editor/contact person, e.g., via a sharing link or the CODECHECK Zenodo community; push the `codecheck.yml` to the repository
50
+
51
+
## Key Concepts
52
+
53
+
-**Certificate** - The final report documenting your CODECHECK, which includes metadata, the manifest, and your assessment.
54
+
-**codecheck.yml** - The configuration file containing all CODECHECK metadata (paper details, authors, manifest, etc.)
55
+
-**Manifest** - A list of computational output files (figures, data files, tables) that you have successfully reproduced during the CODECHECK. Each manifest entry includes the file path and a brief description. The manifest is defined in the `codecheck.yml`.
56
+
40
57
## Usage
41
58
42
-
See the [main vignette](https://github.com/codecheckers/codecheck/blob/master/vignettes/codecheck_overview.Rmd).
59
+
See the [getting started guide](https://codecheck.org.uk/codecheck/articles/codecheck_overview.html) for step-by-step instructions on using the template and the [workflow descriptions](https://codecheck.org.uk/workflows/) on the overall procedures.
60
+
61
+
**Note on certificate templates**: The R Markdown template created by this package can be used in multiple ways:
62
+
63
+
- Execute code in various languages (R, Python, bash, etc.) using knitr's language engines
64
+
- Simply write your certificate narrative without executing any code
65
+
- Mix both approaches as needed
66
+
67
+
If you prefer working with Jupyter Notebooks (especially for Python-based projects), see the [Python CODECHECK template](https://github.com/codecheckers/codecheck-py) based on a Jupyter Notebook.
0 commit comments