Skip to content

perf: lazy check_output formatting and declare UX fixes - #4

Merged
pacmandoh merged 15 commits into
mainfrom
perf/phase-1-lazy-check-output
Jun 10, 2026
Merged

perf: lazy check_output formatting and declare UX fixes#4
pacmandoh merged 15 commits into
mainfrom
perf/phase-1-lazy-check-output

Conversation

@pacmandoh

@pacmandoh pacmandoh commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Defer check_output() assertion labeling and type formatting until the failure path, reducing work on successful typed returns.
  • Return plain R objects from check_output() success paths by stripping internal typedr_value metadata.
  • Improve declare UX: interactive inform when a declared variable is left unset; clearer error call labels for long single-factory assertions.
  • Polish basic function print highlighting (bracket matching, comma coloring) and footer spacing when argument metadata is present.
  • Document plain returns, print layout, and diagnostic labels in roxygen, README, and vignette.

Test plan

  • devtools::test() — full test suite passes locally
  • CI package-check workflow on PR
  • Spot-check declare() unset inform in interactive session
  • Spot-check README fruit example shows Character() in parent error call

Made with Cursor

@pacmandoh
pacmandoh force-pushed the perf/phase-1-lazy-check-output branch from ac6f4d6 to bbcfde5 Compare June 10, 2026 06:40
- declare pkgload in Suggests for the test helper
- cover check_output peel paths and declare unset inform guards
- simplify typedr_value peeling and centralize unset inform checks
@pacmandoh
pacmandoh force-pushed the perf/phase-1-lazy-check-output branch from bbcfde5 to 7f29836 Compare June 10, 2026 06:41
@pacmandoh
pacmandoh merged commit 48cf52a into main Jun 10, 2026
8 checks passed
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