Skip to content

Fix build and R CMD check warnings; bump to 4.0.4#7

Open
kaneplusplus wants to merge 1 commit into
swang87:masterfrom
kaneplusplus:fix/build-r45-macos
Open

Fix build and R CMD check warnings; bump to 4.0.4#7
kaneplusplus wants to merge 1 commit into
swang87:masterfrom
kaneplusplus:fix/build-r45-macos

Conversation

@kaneplusplus

Copy link
Copy Markdown

Summary

  • Drop deprecated Rcpp:::LdFlags() from src/Makevars and src/Makevars.win — unused since 2013 (Rcpp is linked automatically via LinkingTo), and recent toolchains print a deprecation warning.
  • Fix -Wformat warnings: cast .size() results to int in Rprintf calls (Params.h:122, Graph.h:186-187) so they match %d.
  • Fix -Wformat-insufficient-args in Cbcpgraph.cpp:58 — remove an orphan %0.2f format specifier with no matching argument.
  • Add ^\.claude$ and build-artifact patterns to .Rbuildignore to drop a hidden-files NOTE on R CMD check.
  • Bump version to 4.0.4 with a current date in DESCRIPTION.

After these changes, R CMD check reports Status: OK (was 2 WARNINGs).

Test plan

  • R CMD build . succeeds
  • R CMD INSTALL bcp_4.0.4.tar.gz succeeds
  • _R_CHECK_FORCE_SUGGESTS_=false R CMD check bcp_4.0.4.tar.gz returns Status: OK
  • library(bcp); bcp(c(rnorm(50,0,1), rnorm(50,5,1))) runs and returns a bcp object

Tested locally with R 4.5.3 on macOS aarch64.

🤖 Generated with Claude Code

- Drop deprecated Rcpp:::LdFlags() from src/Makevars and src/Makevars.win
  (no longer needed since 2013; Rcpp is linked automatically via LinkingTo).
- Cast .size() results to int in Rprintf calls in Params.h and Graph.h to
  match %d format specifier.
- Remove orphan %0.2f format specifier in Cbcpgraph.cpp Rprintf with no
  matching argument.
- Add .claude and build-artifact patterns to .Rbuildignore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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