Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stricter sparsevctrs tests #1204

Merged
merged 6 commits into from
Sep 18, 2024
Merged

Stricter sparsevctrs tests #1204

merged 6 commits into from
Sep 18, 2024

Conversation

EmilHvitfeldt
Copy link
Member

All sparsvctrs tests now have option set such that unintentional materialization results in an error.

In addition, we now error on formula interface for sparse data, due to the model.matrix() issue we are running into

Copy link
Contributor

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

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

Related to tidymodels/workflows#246.

I agree that this is the direction we want to be taking!

Leaving review as Comment due to the comment beginning with "These tests now test..."—I think we ought to be testing each of the 4 options x engine_supports_sparsity combinations, but are only testing 2.

R/convert_data.R Show resolved Hide resolved
tests/testthat/test-sparsevctrs.R Show resolved Hide resolved
tests/testthat/test-sparsevctrs.R Outdated Show resolved Hide resolved
tests/testthat/test-sparsevctrs.R Outdated Show resolved Hide resolved
tests/testthat/test-sparsevctrs.R Outdated Show resolved Hide resolved
@EmilHvitfeldt EmilHvitfeldt merged commit ee072ce into main Sep 18, 2024
10 checks passed
@EmilHvitfeldt EmilHvitfeldt deleted the stricter-sparsevctrs-tests branch September 18, 2024 23:46
Copy link

github-actions bot commented Oct 3, 2024

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants