ok, so youre a mac user. so its trying to compile digest for you from source, and it needs xcrun utility in order to attempt this (which may or may not work).
alternatively try getting a binary from this repo
install.packages("digest", repo = 'https://mac.R-project.org')
info from technocrat's earlier solution: