Hadley Wickham

Results 2587 comments of Hadley Wickham

Like `local_mocked_bindings(x = 1)` ?

What are you trying to do?

I feel like for R6 objects the natural way to mock them is to create a subclass. e.g. something like this: ```R TestObject

Scratch that; found a new home.

Oh yeah, I've recently discovered that `guess_encoding()` is a bit flakey; I still don't know of any better tool, but we should tweak the coverage here.

Oh yeah, I've recently discovered that `guess_encoding()` is a bit flakey; I still don't know of any better tool, but we should tweak the coverage here.

And it would be convenient if `transformer` could take a list of functions.

I haven't felt the itch for the helpers I think it's probably better to create on a case-by-case basis.

IMO this example actually mildly supports our decision to deprecate `map_dfr()` because in this case it actually combines by column! I 100% agree that `map_dfr()` is very convenient, but this...