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

Error column string must be length 1 since tidyr update #166

Closed
michielve opened this issue Oct 1, 2019 · 2 comments
Closed

Error column string must be length 1 since tidyr update #166

michielve opened this issue Oct 1, 2019 · 2 comments
Labels

Comments

@michielve
Copy link

michielve commented Oct 1, 2019

After updating the tidyr package to the latest version (V1.0, since 11-sep-2019) I am unable to create an xpose_data object. I get the following error:
Column string must be length 1 (the group size), not 2

After some troubleshooting I found that the error originates from the creation of the table_list object in the list_nm_tables function.

table_list <- table_list %>% dplyr::group_by_(.dots = c("problem", "level")) %>% tidyr::nest() %>% dplyr::mutate(string = purrr::map_chr(.$data, ~stringr::str_c(.$code, collapse = " "))) %>% dplyr::mutate(file = stringr::str_match(.$string, "\\s+FILE\\s*=\\s*([^\\s]+)")[, 2]) %>% dplyr::filter(!is.na(.$file))

Installing the previous version of tidyr solved the issue for me.

Thanks,
Michiel

@bguiastr
Copy link
Collaborator

bguiastr commented Oct 1, 2019

Thank you very much for the bug report, I am aware of this issue and will release 0.4.5 by the end of the week to CRAN to fix this.

@bguiastr bguiastr added the bug label Oct 1, 2019
@bguiastr
Copy link
Collaborator

Fixed in 0.4.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants