Possibly

possibly() always succeeds. It is simpler than safely(), because you can give it a default value to return when there is an error.

A <- list(1,10,"a")

map_dbl(.x = A, .f = possibly(log, otherwise = NA_real_) )
#> [1] 0.000000 2.302585       NA