Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Build package release

on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write

env:
R_KEEP_PKG_SOURCE: yes

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out release tag
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: release

- name: Install package dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck any::roxygen2 any::testthat
needs: check

- name: Check tag and package version
shell: bash
run: |
set -euo pipefail
tag_version="${GITHUB_REF_NAME#v}"
package_version=$(Rscript -e "cat(read.dcf('DESCRIPTION')[1, 'Version'])")
package_name=$(Rscript -e "cat(read.dcf('DESCRIPTION')[1, 'Package'])")

if [ "$tag_version" != "$package_version" ]; then
echo "Tag version ($tag_version) does not match DESCRIPTION version ($package_version)."
exit 1
fi

echo "Package: $package_name"
echo "Version: $package_version"

- name: Check generated documentation
shell: bash
run: |
set -euo pipefail
Rscript -e "roxygen2::roxygenise()"
git diff --exit-code -- NAMESPACE man/

- name: Run package checks
shell: bash
run: |
set -euo pipefail
Rscript -e "testthat::test_dir('tests/testthat')"
Rscript -e "rcmdcheck::rcmdcheck('.', args = c('--no-manual', '--as-cran'), error_on = 'warning')"

- name: Build source archive
shell: bash
run: Rscript build_package.R --no-manual

- name: Upload source archive as workflow artifact
uses: actions/upload-artifact@v4
with:
name: source-package
path: '*.tar.gz'
if-no-files-found: error
retention-days: 90

- name: Create GitHub Release and attach source archive
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
fail_on_unmatched_files: true
files: '*.tar.gz'
2 changes: 2 additions & 0 deletions .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
config:
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ValCont
Type: Package
Title: Content Validation Using Vaiken and Other Functions
Version: 0.1.0
Version: 0.2.0
Authors@R: c(
person(
"Cesar", "Merino-Soto",
Expand Down
36 changes: 36 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ValCont News

## ValCont 0.2.0

### Added

- `MDScontent()` for multidimensional scaling maps of item-trait correspondence.
- `LuAgree()` for estimating Lu's agreement coefficient.
- `HTmult()` for Hinkin-Tracey indices.
- `minimumCV()` for Wilson-based minimum sample-size or critical-value calculations.
- Additional public and supporting functions for content validity analyses, including `CVIpub()` and `Vaikenpub()`.
- GitHub Actions workflows for cross-platform package validation and source-package release archives.

### Changed

- Added explicit validation for missing data across the package functions.
- Refactored MER confidence-interval calculations and improved code consistency.
- Improved plotting support using `ggplot2` and added MDS plotting functionality.
- Expanded and regenerated package documentation.
- Updated package metadata, namespace exports, dependencies, and repository documentation.

### Fixed

- Corrected documentation, namespace, and package-structure issues identified during CRAN-style validation.
- Improved handling of package examples and test execution.

## ValCont 0.1.0

Initial public version of `ValCont`, including:

- Content validity coefficients such as CVC, CVI, CVIR, CVR, MER, and Aiken's V.
- Asymmetric confidence intervals for bounded content validity coefficients.
- Functions for comparing independent content validity coefficients.
- MOVER-R confidence intervals for ratios of independent coefficients.
- Functions for evaluating rating homogeneity.
- Basic plotting functions for validity-coefficient results.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ R package for content validity analysis.
## Package Information

- **Title:** Content Validation Using Vaiken and Other Functions
- **Version:** 0.1.0
- **Releases:** <https://github.com/Diegolivia/ValCont/releases>
- **Date:** 2025-07-28
- **License:** GPL (>= 3)
- **URL:** <https://github.com/Diegolivia/ValCont>
Expand Down Expand Up @@ -54,6 +54,8 @@ if (!"devtools" %in% rownames(installed.packages())) {
devtools::install_github("Diegolivia/ValCont")
```

See [NEWS.md](NEWS.md) for a summary of changes in each package version.

## References

- Aiken, L. R. (1980). Content validity and reliability of single items or questionnaires. Educational and Psychological Measurement, 40, 955-959. <https://doi.org/10.1177/001316448004000419>
Expand Down
Loading