Skip to content

contentvalidR 1.0.1: APA table forms and the fixes from a last review before CRAN - #108

Open
JUhalt wants to merge 18 commits into
masterfrom
release/1.0.1
Open

JUhalt wants to merge 18 commits into
masterfrom
release/1.0.1

Conversation

@JUhalt

@JUhalt JUhalt commented Nov 22, 2026

Copy link
Copy Markdown
Owner

contentvalidR 1.0.1: the version that goes to CRAN as the update from 0.4.0, released on GitHub and R-universe first. Tracking issue: #107. Milestone: v1.0.1.

No computed value changes, and the handoff is unchanged (schema 1, ASCII, no new bytes in any stored text field).

APA table forms (decided by the maintainer on 2026-11-22, shared with nomologR)

  • content_report()'s APA table and its Markdown write a p cell as <.001 or >.999 (no space). Sentences, table notes and console printouts keep p < .001.
  • A negative number in that table and its note takes the true minus sign (U+2212). The returned object holds it in every locale. print() shows a hyphen in a non-UTF-8 session and in a document knitted to PDF, where pdflatex would stop at U+2212. Markdown printed in a LaTeX results = "asis" chunk gets $-$. R source, Rd and vignettes stay ASCII for the minus; plots are unchanged.
  • One fallback congruence table printed -1 to 1 means with a leading zero; ?expert_power wrote 0.5. Both now follow APA.

Fixes from the last review before CRAN

A four-lens review found 40 points: CRAN policy, help pages and examples, vignettes and README, and a first-time user. Two were refuted on checking, and none blocks CRAN. R CMD check --as-cran with remote incoming checks gave 1 NOTE, the local-only V8 one. All 57 DOIs and every URL resolved.

  • Silent wrong results now stop:
    • Item sorts whose target and assigned labels are coded differently ("A" vs "a", 1 vs "1.0") stop and name both label sets. Before, every count was 0, every item went to Review, and nothing was said.
    • A misspelled target_col in congruence mode now stops. Before, every item was silently described with no decision.
  • Positional trap for 0.4.0 code: ioc_cut has been the tenth argument of expert_validity() since 1.0.0. It is now checked in every mode, so an old positional proportion_ci stops with an explanation instead of silently getting Wilson intervals.
  • Clearer messages:
    • Errors name the argument you passed and the column at fault.
    • Rating bounds are echoed with the observed range.
    • A blank sort cell is told to be NA.
    • A content_evidence() result given to content_handoff() or content_report() gets an explanation.
    • A list given to compare_rounds() gets a hint.
    • An empty flagged report names its units and no longer points to a Markdown table that does not exist.
  • Help pages:
    • Every returned component is named.
    • benchmark_set is documented in both workflows.
    • ?contentvalidR gains a Getting started section.
    • The glossary's share is described as the proportion it is.
  • Vignettes:
    • The shown code reruns as written: the hidden helper and seed are now visible.
    • The fragile-item explanation is corrected.
    • The item and workflow counts are corrected, and the three misbehaving walkthrough items are named.
    • Scaffold sentences no longer open with numerals.
    • Data-raw scripts link to the repository.
    • Missing references are added.
  • README: "[Facets help]" no longer renders as display math on GitHub. The APA Publication Manual is added to the references and to inst/REFERENCES.bib.
  • cran-comments.md:
    • Names 1.0.1.
    • Records the ioc_cut position.
    • Lists no reverse dependencies on CRAN.
    • Keeps only MacKenzie as the flagged word. This is confirmed against the raw win-builder log before submission.

Left for a later release, because each changes a documented value (in ROADMAP):

  • one form for benchmark_set
  • one separator for tied competitors
  • jointly with nomologR, the column-dropping order of the shared table printer

Checks

  • Full test suite on the merged branch: running
  • Release gate on 8ba1859: running
  • Spelling clean after the README re-knit; R source ASCII outside comments.

Merges only on the maintainer's word ("merge #N"). After merge: CI and gate on the merge commit, tag v1.0.1, GitHub release (R-universe), win-builder, then the CRAN submission.

🤖 Generated with Claude Code

JUhalt and others added 16 commits November 22, 2026 10:35
The APA table and its Markdown write a p cell as "<.001" or ">.999" and
a negative number with the minus sign (U+2212), as the maintainer chose
for both packages on 2026-11-22. Console printouts, the data.frame
format and the handoff are unchanged and stay ASCII. A console that is
not UTF-8 prints the hyphen. The roadmap gains the v1.0.1 section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
two leading zeros

Knitted to PDF, the APA minus stops pdflatex, so the Markdown table gets
LaTeX's $-$ in an asis chunk and the hyphen elsewhere. An empty report
says "No items were flagged for review." (or judges, or blueprint cells)
and no longer points to a Markdown table that does not exist. The
congruence fallback table prints its -1 to 1 means without a leading
zero, and a lenient judge's sentence rounds its severity half up, as the
table beside it does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cran-comments now names 1.0.1 as the version CRAN receives, notes that
expert_validity()'s tenth argument has been ioc_cut since 1.0.0, records
that CRAN lists no reverse dependencies, and keeps only the one word
win-builder flags. Two "###" headings under 0.0.4.9000 merged four NEWS
sections into two in news(); they are now "##" like every other version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the pre-CRAN review of 1.0.1:

- reading-output: the fragile-item rule says "depending on the panel
  size" and works the page's own example (Item1 to Item4 at 7 of 8 are
  not fragile; an item at 5 of 6 would be). delphi_validity() joins the
  one-row-per-item workflows. The number rules add that the APA table
  from content_report() writes <.001, >.999 and a true minus sign, while
  sentences and printouts keep "< .001" and the hyphen. Newcombe (1998)
  takes its full DOI, percent-encoded, in angle brackets so the link is
  not cut at the "::".
- design-and-reporting, reporting-examples: read_example() moves from
  the hidden setup chunk into a shown chunk, so copied code runs.
- construct-rating-validity: set.seed(12) opens the shown data chunk.
- reporting-examples, construct-rating-validity: their own tables write
  p as an APA table does, <.001 and >.999.
- reporting-examples: the results scaffolds open sentences with a word
  (APA 7, Section 6.33), and the References list Polit et al. (2007).
  handoff-to-empirical-validation's sentence template does the same.
- The workflow and item counts: "the item-sort, construct-rating, and
  expert-panel workflows", and seven test items in the extdata README.
- one-item-set-both-stages names the three items (EF4, TF4, EF3).
- item-sort-validity keeps "target-scale" on one line.
- Every pointer to a data-raw script says it is in the source repository
  and links it, since the scripts do not ship.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Value sections now name every component that compare_rounds(),
content_evidence(), sort_power() and content_structure() return. The
sort_validity() and rating_validity() pages list their scale_summary
columns and say which form of benchmark_set each stores (the label in
one, the code in the other), pointing to colquitt_benchmarks() and
interpret_colquitt(), which return both. No stored value changes.

?contentvalidR gains a Getting started section naming the vignettes and
the example CSV files. The methods page points below, where its
summary() section renders; the glossary gives share as the proportion
results store; and bounded values in the help prose drop the leading
zero (.50, .74, .63, .62).

Review IDs: HELP-3, HELP-4, HELP-5, HELP-6, HELP-7, F3, RU-14 (help
page part), APA inventory (roxygen leading zeros).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
expert_validity() now checks `ioc_cut` in every mode. Since 1.0.0 it is
the 10th argument, ahead of `proportion_ci`, so a 0.4.0-era positional
call put a proportion_ci string there, which relevance and essentiality
modes ignored, silently using Wilson intervals (CVR-CODE-1).

Congruence mode stops when an explicit `target_col` is not a column of
`data`, instead of describing every item as if no target were given; the
default name keeps the descriptive fallback (RU-02).

Errors raised by aikens_v(), cvr() and ioc() on behalf of
expert_validity() name `data`, not `ratings` or `essential`, and name the
non-numeric or missing column; essentiality data coded other than 0/1 are
told to code essential as 1 and every other answer as 0 (RU-10). The
not-numeric message of expert_validity(), judge_validity(),
panel_agreement() and aikens_v() states the one-row-per-judge shape
(RU-03). Out-of-range errors in rating_validity(), htc(), htd() and
judge_validity() give the observed range and the bounds in force, saying
which are defaults (RU-06). Five existing tests assert the new wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When a target construct never appears among the assigned labels but
matches one ignoring case or as a number ("A" and "a", 1 and "1.0"),
sort_validity(), compute_psa() and compute_csv() now stop and name both
label sets, where before every target count was 0 and every item was
flagged for review with no message. When not one assignment in the data
equals its item's target they warn, once per sort_validity() call
(RU-01). Three existing tests built on such data now expect the warning.

A blank assigned label now says to code a skipped item as NA, for example
with read.csv(file, na.strings = c("", "NA")), and ?sort_validity says
so under `assignments` (RU-04).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
content_handoff() and content_report() given a content_evidence() result
say it combines stages and is not a fitted workflow, and point to each
stage's fit, `$carried` and as.data.frame() (RU-05). compare_rounds()
given one list of fits says to pass them as separate arguments or with
do.call(compare_rounds, fits) (RU-16).

Adds tests/testthat/test-review-101-code.R, which covers every finding
fixed on this branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reading-output vignette said that sentences keep the hyphen, but the
note under content_report()'s APA table is made of sentences and writes a
negative number with the true minus sign. The page now limits the hyphen to
the printouts of the fits, and the test checks the note on the congruence
example.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The glossary printout wraps each range in parentheses, so the share range
now uses a semicolon like every other entry instead of nesting a second
pair. The Getting started section gives walkthrough_relevance.csv its own
bullet, naming content_evidence() in the reporting-examples vignette that
reads it. ?rating_validity now pairs each benchmark_set code with the label
the printout shows for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cvr() names the caller's argument in its last two errors, so an empty
essentiality table or a count above N given to expert_validity() names
`data` (and experts) rather than "Matrix input" or `essential`.

expert_validity() checks `ioc_cut` before `proportion_ci` and the
arguments after it, so a 0.4.0-era positional call with 11 or more
arguments gets the error that explains the shift.

A table with both text columns and columns of numbers stored as text
names every such column in one error, keeping the example from a text
column.

The target_col help says that an explicit name the data lack is an
error, while the default name, when absent, leaves the items described.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
NEWS gains the 1.0.1 section: the APA table forms, the bug fixes and
clearer messages from the review before CRAN, and the documentation it
corrected. The README shows 1.0.1 as the current release, lists the APA
Publication Manual (also added to inst/REFERENCES.bib), and writes
"[Facets help]" as text where GitHub drew it as a formula.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JUhalt JUhalt added this to the v1.0.1 milestone Nov 22, 2026
JUhalt and others added 2 commits November 22, 2026 14:36
covr installs the package without its vignettes, so only the extdata
README's three pointers are there; the test expected the vignettes' five
as well and failed the coverage job.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The coverage job found nine lines no test reached: the short forms of
the not-numeric message (now two small helpers, tested directly, since
no caller can reach them on real data), the "and N more" of a long list,
a long example value cut short, ioc() naming two missing columns, and
knitr's LaTeX check while knitr runs but not to PDF.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant