If I run this code:
library(tidyverse)
lm(speed ~ dist, data = cars) %>% broom::augment()
I get the following warnings:
Warning messages:
1: Deprecated: please use `purrr::possibly()` instead
2: Deprecated: please use `purrr::possibly()` instead
3: Deprecated: please use `purrr::possibly()` instead
4: Deprecated: please use `purrr::possibly()` instead
5: Deprecated: please use `purrr::possibly()` instead
But I don't get how I am supposed replace it using possibly(), which to me seems to to something different than what I am trying to do.
In fact if I just follow the warnings:
> lm(speed ~ dist, data = cars) %>% purrr::possibly()
Error: Can't convert a list to function