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

Sunburst function examples all fail "Error: Argument 1 must have names" #108

Open
cbest47 opened this issue Oct 29, 2020 · 6 comments
Open

Comments

@cbest47
Copy link

cbest47 commented Oct 29, 2020

This might be an issue with another package somewhere down the line, but even the most simple examples of using the sunburst function have failed for me. Trying to troubleshoot this, but would appreciate any help or guidance.

@cbest47
Copy link
Author

cbest47 commented Oct 29, 2020

library(sunburstR)

# read in sample visit-sequences.csv data provided in source
#   https://gist.github.com/kerryrodden/7090426#file-visit-sequences-csv
sequence_data <- read.csv(
  paste0(
    "https://gist.githubusercontent.com/kerryrodden/7090426/"
    ,"raw/ad00fcf422541f19b70af5a8a4c5e1460254e6be/visit-sequences.csv"
  )
  ,header=F
  ,stringsAsFactors = FALSE
)

sunburst(sequence_data)


# this fails with the error specified above

@cjyetman
Copy link
Collaborator

what version of dplyr do you have installed? this error "Error: Argument 1 must have names" seems to be something that dplyr::bind_rows() reports (which is used in the internal function here sunburstR::csv_to_hier()), but I can't replicate what you're seeing.

@cbest47
Copy link
Author

cbest47 commented Oct 29, 2020

So the version of dplyr I'm using is 0.8.3 and it looks like it's definitely due for an update. I'll update and see if that solves it. Thank you @cjyetman

@cbest47
Copy link
Author

cbest47 commented Oct 29, 2020

Issue resolved when updating dplyr to version 1.0.2

Thanks again for your help @cjyetman!!!

@cbest47 cbest47 closed this as completed Oct 29, 2020
@cjyetman
Copy link
Collaborator

👍🏻 I'm going to reopen though in case @timelyportfolio wants to either add a specific minimum version of dplyr to the package requirements, or tinker around to find a solution that works in further back versions of dplyr as well.

@cjyetman cjyetman reopened this Oct 29, 2020
@linearyuhan
Copy link

I'm running into the same issue with dplyr version 1.0.3
Any idea how to resolve this is greatly appreciated!

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

No branches or pull requests

3 participants