Skip to content

datasusr 0.2.0: read DBC/DBF with the Rust crate datasus-core - #1

Merged
milkway merged 2 commits into
mainfrom
rust-core
Nov 18, 2026
Merged

milkway merged 2 commits into
mainfrom
rust-core

Conversation

@milkway

@milkway milkway commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Replaces the C reader with a C glue file and a static library built from the bundled crate datasus-core. The R interface is unchanged.

  • Building from source now needs cargo and rustc >= 1.81; the crate is vendored and built offline.
  • trim_ws trims ASCII whitespace only, on every platform.
  • Local R CMD check --as-cran --run-donttest on macOS: only the HTML Tidy NOTE.
  • Not yet tested: Windows and Linux (this PR runs them), win-builder.

See NEWS.md and cran-comments.md.

🤖 Generated with Claude Code

milkway and others added 2 commits November 18, 2026 06:52
Replace the C reader (blast.c, dbc_reader.c, dbf_parser.c) with a C glue
file and a static library built from the bundled crate datasus-core. The R
interface is unchanged. Whitespace trimming is now ASCII-only on every
platform. Adds configure/Makevars scaffolding for cargo (offline, vendored),
inst/AUTHORS, and a Windows job in R-CMD-check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…results

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@milkway
milkway marked this pull request as ready for review November 18, 2026 10:38
@milkway
milkway merged commit 97efe7c into main Nov 18, 2026
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