Skip to content

Fix R CMD check (rename vendored header, refresh workflows) - #31

Merged
schochastics merged 2 commits into
mainfrom
fix-rcmdcheck
Jul 24, 2026
Merged

Fix R CMD check (rename vendored header, refresh workflows)#31
schochastics merged 2 commits into
mainfrom
fix-rcmdcheck

Conversation

@schochastics

Copy link
Copy Markdown
Owner

The R-CMD-check workflow was failing on main. Two things — a real check WARNING and a stale action.

The failure (real WARNING)

checking if this is a source package ... WARNING
  Subdirectory 'src' contains: nanoflann.hpp
  These are unlikely file names for src files.

R CMD check doesn't accept the .hpp extension in src/, and CI runs error-on: "warning" (CRAN-like), so this failed the build. Fix: rename the vendored header src/nanoflann.hppsrc/nanoflann.h (the .h header bundle_geom.h was already fine) and update the #include in mingle.cpp.

Workflow refresh

  • actions/checkout@v3@v4 in both R-CMD-check.yaml and pkgdown.yaml (v3 forces the deprecated Node 20). The r-lib/actions/*@v2 steps are current and unchanged.

Housekeeping

  • Added inst/COPYRIGHTS documenting the bundled nanoflann BSD license (good practice for CRAN).
  • Rbuildignore .claude.

Verification

Local R CMD check --as-cran: 0 errors | 0 warnings | 0 notes. devtools::test(): PASS 162.

🤖 Generated with Claude Code

schochastics and others added 2 commits July 24, 2026 09:36
R CMD check (run with error-on = warning) failed on:
  checking if this is a source package ... WARNING
  Subdirectory 'src' contains: nanoflann.hpp
R does not accept the .hpp extension in src/. Rename the vendored header
src/nanoflann.hpp -> src/nanoflann.h and update the include in mingle.cpp.

Also:
- bump actions/checkout@v3 -> v4 in both workflows (v3 uses deprecated
  Node 20)
- add inst/COPYRIGHTS documenting the bundled nanoflann BSD license
- Rbuildignore .claude

Local R CMD check --as-cran is now 0 errors / 0 warnings / 0 notes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
checkout@v4 still targets the deprecated Node 20 runtime; v5 targets
Node 24, silencing the deprecation annotation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@schochastics
schochastics merged commit fc9ff79 into main Jul 24, 2026
6 checks passed
@schochastics
schochastics deleted the fix-rcmdcheck branch July 24, 2026 07:45
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