Skip to content

export create_target and add a new mode#63

Open
pearsonca wants to merge 5 commits into
mainfrom
more-predict
Open

export create_target and add a new mode#63
pearsonca wants to merge 5 commits into
mainfrom
more-predict

Conversation

@pearsonca
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes create_target() a public API and extends target generation with a new "snapshot" mode, while also applying some test/style formatting cleanups.

Changes:

  • Export create_target() and extend mode to include "snapshot".
  • Implement "snapshot" behavior in internal_target_builder_vec() and add corresponding tests.
  • Reformat several tests and a few code blocks for readability.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
R/imuGAP.R Adds "snapshot" mode, exports create_target(), and includes minor formatting changes.
NAMESPACE Exports create_target().
tests/testthat/test-create-target.R Adds tests for "snapshot" mode and reformats some expectations.
tests/testthat/test-sampling-smoke.R Reformats an expect_false() call.
tests/testthat/test-extract-imugap.R Reformats mock stanfit construction.
tests/testthat/test-sampling.R Removes an extraneous leading line.
tests/testthat/test-predict.R Removes an extraneous leading line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread NAMESPACE
Comment thread R/imuGAP.R
Comment thread R/imuGAP.R
Comment thread tests/testthat/test-create-target.R
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants