Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upError while using vis_dat with diamonds dataset #75
Comments
|
Thank you for filing this issue! Just confirming that I get the same error: visdat::vis_dat(ggplot2::diamonds)
#> Warning in seq_len(nrow(x)): first element used of 'length.out' argument
#> Error in mutate_impl(.data, dots): Evaluation error: argument must be coercible to non-negative integer.Created on 2018-04-03 by the reprex package (v0.2.0). |
where `vis_dat(diamonds)` errored `seq_len(nrow(x))` inside internal function `vis_gather_`, used to calculate the row numbers. Using `mutate(rows = dplyr::row_number())` solved the issue.
|
Thank you for reporting this! This was a bug, fixed by using a better way to create a row number column in a dataframe - see this [line here](4878053#diff-1b62d1c1d07f967b6ebe9bbd20df1348R10 This should now be fixed: library(ggplot2)
library(visdat)
packageVersion("visdat")
#> [1] '0.2.4.9000'
vis_dat(diamonds)Created on 2018-06-07 by the reprex package (v0.2.0). |

Here is the error I get when I use vis_dat with diamonds dataset: