I think I slightly prefer this style:

```R
result <- NA_character_
try(result <- digest(path, file = TRUE), silent = TRUE)
result
```

(also note use of character NA and relying on imports to find digest)