Discovered this week: The {rsconnect} #RStats 馃摝 's writeManifest() function creates a json file of all the R dependencies in the file - and the versions currently loaded on your system - for any Quarto document, not just Shiny apps.
https://rstudio.github.io/rsconnect/reference/writeManifest.html