When running document() with the argument quiet = TRUE on a package where another required package is not installed you get the following “question”:
With no information about what you are answering/selecting or how to answer/select.
The unsuppressed question with selections is as follows:
ℹ The package "packageName" is required.
✖ Would you like to install it?
1: Yes
2: No
It seems reasonable to show this information when running document(), even with quiet = TRUE.