Skip to content

Created an epi_df constructor #104

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

Merged
merged 4 commits into from
Jun 24, 2022
Merged

Conversation

rachlobay
Copy link
Collaborator

@rachlobay rachlobay commented Jun 16, 2022

As per issue 94, created a constructor for epi_df called new_epi_df(), which was added to the epi_df R script. By default, it builds an empty tibble with the correct metadata (based on as_epi_df function). Note that this was basically shifting some the code from as_epi_df() to this new constructor function... I am not sure if that is ok as now the two functions have a lot of overlap, so let me know what you think. Also, there are some tests for new_epi_df() in test-epi_df.R.

Regarding epi_archive, epi_archive$new is the public method that creates a new epi_archive object as $new is the constructor for R6 objects. So, I don't think that there is much to be done there, but maybe there is a modification you want me to make? In that case, let me know what that is on a separate issue.

@rachlobay rachlobay linked an issue Jun 16, 2022 that may be closed by this pull request
@rachlobay rachlobay linked an issue Jun 16, 2022 that may be closed by this pull request
Copy link
Contributor

@dajmcdon dajmcdon left a comment

Choose a reason for hiding this comment

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

Looks good to me. @rachlobay Please merge if there's nothing outstanding.

@rachlobay rachlobay merged commit b8d5ac6 into main Jun 24, 2022
rachlobay pushed a commit that referenced this pull request Aug 3, 2022
@rachlobay rachlobay deleted the 94-create-an-epi_df-constructor branch August 18, 2022 01:56
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.

Create an epi_df constructor
2 participants