Skip to content

Conversation

@DavisVaughan
Copy link
Member

@DavisVaughan DavisVaughan commented Mar 24, 2023

Closes #220

It looks like recompose() is really what we want to use in recipes

Since recipes allows for this. We don't want this in the hardhat blueprints though, as we'd prefer to nudge people towards tibbles, which hardhat tries hard to generate internally.
#' @description
#' `recompose()` takes a data frame and converts it into one of:
#' - A tibble
#' - A data frame
Copy link
Member Author

Choose a reason for hiding this comment

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

I added support for "data.frame" specifically for recipes, but hardhat won't use it

#' The output type is determined from the `composition`.
#'
#' @export
#' @keywords internal
Copy link
Member Author

Choose a reason for hiding this comment

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

Internal as I don't really want people using this

Copy link
Member

@EmilHvitfeldt EmilHvitfeldt left a comment

Choose a reason for hiding this comment

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

Checked in recipes. Looks good!

This is great, removing this duplicated logic is going to be nice

@DavisVaughan DavisVaughan merged commit 887091e into main Mar 24, 2023
@DavisVaughan DavisVaughan deleted the feature/recompose branch March 24, 2023 18:46
@github-actions
Copy link

github-actions bot commented Apr 8, 2023

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 Apr 8, 2023
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.

3 participants