Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented Sep 8, 2025

No description provided.

@claude
Copy link

claude bot commented Sep 8, 2025

Claude finished @hadley's task —— View job


Code Review Complete

Reviewing PR changes for potential bugs or issues:

  • Analyze DESCRIPTION changes
  • Review R code changes (mock-oo.R, mock2.R)
  • Check documentation updates
  • Review vignette changes
  • Provide feedback

Issues found:

vignettes/challenging-tests.Rmd:147 - Incomplete sentence "And" followed by code block. The text should complete the thought or be removed.

LGTM for all other changes - documentation improvements, vignette references to vignette("mocking"), and RoxygenNote version bump are appropriate.

Copy link
Contributor

@maelle maelle left a comment

Choose a reason for hiding this comment

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

Thank you!


## Do you need it?

But before you read the rest of the vignette and dive into the full details of creating a fully 100% correct expectation, consider if you can get away with a simpler wrapper. For example, take this expectation from tidytext:
Copy link
Contributor

Choose a reason for hiding this comment

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

why not start with an example of a wrapper that is fine? For instance it could be

expect_df <- function(tbl) {
  expect_s3_class(tbl, "data.frame")
}

Or here is a real example: https://github.com/ropensci/aorsf/blob/2b7fa72bff5cd4e8b2984358e35d0938e50540b0/tests/testthat/helper-orsf.R#L259

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, thanks!

hadley and others added 3 commits October 2, 2025 15:11
Co-authored-by: Maëlle Salmon <maelle.salmon@yahoo.se>
Co-authored-by: Marco Colombo <mar.colombo13@gmail.com>
@hadley hadley merged commit ed78cae into main Oct 2, 2025
13 checks passed
@hadley hadley deleted the doc-feedback branch October 2, 2025 23:14
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.

4 participants