You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created on 2018-01-18 by the reprex package (v0.1.1.9000).
Resolution: Install the dplyr package via install.packages("dplyr").
Details
As reported here, styler depends on dplyr via purrr::map_dfr() which we need to fix asap. Potentially this affects the upcoming reprex release that lists styler under suggests and the planned dependency in usethis.
cc: @krlmlr
Can we implement our own version of map_dfr()? Need to take special care of the corner case of zero-length input, is this tested anywhere (implicitly or explicitly)?
FWIW, this problem seems to affect only users that don't have dplyr installed and use = for assignment in their code. So, we should update soon, but in the meantime it feels enough if the problem is discoverable. I adapted the description of this issue to that effect.
Yes, thanks @krlmlr. I think the error is pretty informative, so it's not too bad. However, only if style_text() is used, in the other cases (e.g. with style_dir()) it will simply show in the summary table that there was an error with styling without further explanation. So this is unsatisfactory.
@krlmlr maybe you can have a look at #324 where I simply c/p purrr code and import the required functions from purrr. bind_rows() was already implemented when we removed the dplyr dependency in #182. It seems pretty straight forward.
Activity
krlmlr commentedon Jan 18, 2018
Can we implement our own version of
map_dfr()? Need to take special care of the corner case of zero-length input, is this tested anywhere (implicitly or explicitly)?krlmlr commentedon Jan 18, 2018
FWIW, this problem seems to affect only users that don't have dplyr installed and use
=for assignment in their code. So, we should update soon, but in the meantime it feels enough if the problem is discoverable. I adapted the description of this issue to that effect.krlmlr commentedon Jan 18, 2018
Zero-length input doesn't seem to be relevant for our use case here.
lorenzwalthert commentedon Jan 18, 2018
Yes, thanks @krlmlr. I think the error is pretty informative, so it's not too bad. However, only if
style_text()is used, in the other cases (e.g. withstyle_dir()) it will simply show in the summary table that there was an error with styling without further explanation. So this is unsatisfactory.lorenzwalthert commentedon Jan 18, 2018
@krlmlr maybe you can have a look at #324 where I simply c/p purrr code and import the required functions from purrr.
bind_rows()was already implemented when we removed the dplyr dependency in #182. It seems pretty straight forward.krlmlr commentedon Jan 18, 2018
Should we show a summary of the error messages with
style_dir()?