ropensci / skimr

A frictionless, pipeable approach to dealing with summary statistics
https://docs.ropensci.org/skimr
1.11k stars 79 forks source link

Output isn't printing as expected #641

Closed hjohns12 closed 2 years ago

hjohns12 commented 3 years ago

This is what I see when I try to use skim today. Using version skimr_2.1.2.

skim(iris) ── Data Summary ──────────────────────── Values Name iris
Number of rows 150
Number of columns 5


Column type frequency:
factor 1
numeric 4


Group variables None

── Variable type: factor ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

── Variable type: numeric ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

michaelquinn32 commented 3 years ago

Hi Hope!

Sorry for the issue. Are you on windows? What version of R are you using?

Either way, could your try

options(skimr_strip_metadata = FALSE)

And try again?

Thanks!

hjohns12 commented 3 years ago

I'm on a Mac. When I tried options(skimr_strip_metadata = FALSE) everything works as expected. Thanks!

R.version _
platform x86_64-apple-darwin17.0
arch x86_64
os darwin17.0
system x86_64, darwin17.0
status
major 4
minor 0.3
year 2020
month 10
day 10
svn rev 79318
language R
version.string R version 4.0.3 (2020-10-10) nickname Bunny-Wunnies Freak Out

elinw commented 3 years ago

I just got this as well. I seem to remember that this was an issue also in a prior release and there was an easy fix, will look.

elinw commented 3 years ago

I'm going to pin this.

pulleyps commented 3 years ago

I am finding that if I run the following, skim() outputs appropriately:

iris %>% dplyr::group_by(Species) %>% skim()

But when I apply it to the end of a long pipe, skim() does nothing. I can see it running, but then it stops and doesn't show any output. If I replace the skim() function at the end with print() then the result prints nicely as expected:

data <- starting_data %>%
(many commands in pipe) %>% skim()

Does skim() not work with long or complicated pipes? Is it an RStudio setting issue?

elinw commented 3 years ago

Hi this is really a different issue in my opinion. There is no reason skimr should not work in a long series. Can you please open this as a new issue and past your complete code that isn't working?

pulleyps commented 3 years ago

Ok, I opened a new issue.

On Tue, Mar 23, 2021 at 6:12 AM elinw @.***> wrote:

Hi this is really a different issue in my opinion. There is no reason skimr should not work in a long series. Can you please open this as a new issue and past your complete code that isn't working?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ropensci/skimr/issues/641#issuecomment-804852149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETRBMBAW56XFRGFJ3ABG2LTFCAUFANCNFSM4YM2RMRQ .

elinw commented 2 years ago

I'm going to close this because I think it is also addressed by the pillar issue. #676 #654