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

make recipe() work with sparse matrices #1367

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

EmilHvitfeldt
Copy link
Member

Ref: #1343

@@ -12,6 +12,13 @@ recipe <- function(x, ...) {
#' @rdname recipe
#' @export
recipe.default <- function(x, ...) {

# Doing this here since it should work for all types of Matrix classes
Copy link
Member Author

Choose a reason for hiding this comment

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

since it is a S4 class, I found this way of handling it the cleanest. It happens when you go recipe(data, ...).

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.

Looking good!🦊 Just need to address:

❯ checking dependencies in R code ... WARNING
  '::' or ':::' import not declared from: ‘methods’

@simonpcouch simonpcouch changed the title make fit() work with sparse matries make recipe() work with sparse matrices Sep 9, 2024
@EmilHvitfeldt EmilHvitfeldt merged commit 61c9c18 into main Sep 9, 2024
11 checks passed
@EmilHvitfeldt EmilHvitfeldt deleted the sparse-matrix-recipe branch September 9, 2024 21:48
Copy link

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 Sep 24, 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