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

When using str() on the output from dir_info I get Error in format.default(res, scientific = scientific, digits = digits, #155

Closed
ghost opened this issue Dec 7, 2018 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@ghost
Copy link

ghost commented Dec 7, 2018

Hi there,

Running R3.5.1 on macOS Mojave 10.14.1, whenever I run dir_info("plot/", recursive = TRUE, type = "file") the outputted tibble throws an error when I try and str().

> str(get_plots) Classes ‘tbl’, ‘tbl_df’ and 'data.frame': 23861 obs. of 18 variables: $ path : 'fs_path' chr "plot/blur/beetlebum0001.png" "plot/blur/beetlebum0002.png" "plot/blur/beetlebum0003.png" "plot/blur/beetlebum0004.png" ... $ type : Factor w/ 8 levels "any","block_device",..: 7 7 7 7 7 7 7 7 7 7 ... $ size :Error in format.default(res, scientific = scientific, digits = digits, : formal argument "drop0trailing" matched by multiple actual arguments

This means I'm unable to pass the tibble into dplyr and so on. If I drop the size column, it all starts working again.

In trying to chase the bug down I did find this commit, in the bench package which "seems" to be the same issue:
r-lib/bench@c16bd36

Explicitly take drop0trailing as an argument to format methods. In R 3.5 format() is called with drop0trailing in str, causing an error due to duplicated arguments.

Hope this helps,

Thanks, Chris

@jimhester jimhester added the bug an unexpected problem or unintended behavior label Mar 18, 2019
@ghost
Copy link
Author

ghost commented Mar 18, 2019

Fantastic. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant