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

Create print.one_skim_df, document reassign_skim_attrs and modify re… #703

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

elinw
Copy link
Collaborator

@elinw elinw commented Apr 26, 2022

…concile_skimrs in response to changes in 4.2 and R CMD CHK issues.

#702

…oncile_skimrs in response to changes in 4.2 and R CMD CHK issues.
@elinw
Copy link
Collaborator Author

elinw commented Apr 26, 2022

As stated in the issue, we were getting an "object of length > 1" warning but not seeing it, now it is an error.
Also pkgdown was not building (in an issue that other packages had) where there was no print function defined for an object we were printing. @michaelquinn32

We need to do a release ASAP but I'm not sure why this wasn't caught by testing on the develop branch.

@elinw elinw changed the base branch from master to develop April 26, 2022 12:45
#' Pass attributes from a `skimr` object to a new object.
#' @noRd
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure that this change accomplishes anything. For one, I don't see a documentation file generated to match this function. That's a good thing. Documenting this function (removing the noRd tag) is an issue because it is not exported.

Do you mind reverting this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's what is causing one of the errors when it builds.

@@ -61,6 +61,27 @@ print.skim_df <- function(x,
}
}

#' @export
print.one_skim_df <- function(x,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't have a summary method for a one_skim_df. Can we remove the logic for the summary and instead have this?

print.one_skim_df <- function(x, n, width, ...) {
  NextMethod("print")
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I took the logic of

print.skim_df <- function(x,

but took out the purrr.

I'm not sure but now that we are not silently getting the warning it may be that other parts are getting hit in new ways.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe just make include_summary = FALSE ?

Copy link
Collaborator

@michaelquinn32 michaelquinn32 left a comment

Choose a reason for hiding this comment

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

Thanks for these last fixes! I just have a couple of comments on the change..

@elinw
Copy link
Collaborator Author

elinw commented Apr 27, 2022

So overall the initial issue was that there was no print.one_skim_df. Then that then started the issue of reconcile_skimmers not working because of the warning now being an error.
Then it could not find the reassign_skim_attrs() and I tried many things but the one that worked was removing that tag.
Don't know why, or if that means we have no examples or tests that hit the other places with that tag.

Base automatically changed from develop to master May 9, 2022 17:38
@elinw
Copy link
Collaborator Author

elinw commented Oct 10, 2022

@michaelquinn32 I think I replied to at least some of your comments can you take a look?

The main issue is that we were generating a warning and now it's an error. We just didn't realize there was a warning.

@michaelquinn32
Copy link
Collaborator

Sorry to keep pushing back, but I'm not sure this is still an issue that needs to be fixed. For example, here is the most recent r-devel check against our main branch. I don't see a warning.
https://github.com/ropensci/skimr/actions/runs/3221419469/jobs/5269329413#step:6:36

I just put together a dev environment on a machine with R 4.2.1, and I didn't see any issues there either. Do you have an example where we have an issue with the current main or develop branch? If you can provide one, I can take another look.

Thanks! And I appreciate the patience with all of this.

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.

None yet

2 participants