### Bug description

This is from https://github.com/quarto-dev/quarto-cli/discussions/2333#discussioncomment-3586142

A user was trying to use Quarto with R, but default install with apt installed **knitr** 1.28. 

The error thrown by quarto is 
````
Error: 'hooks_markdown' is not an exported object from 'namespace:knitr'
````

as we are using the function in 
https://github.com/quarto-dev/quarto-cli/blob/72d212c88147ab7e187093536d5047fef718023d/src/resources/rmd/hooks.R#L26

Shouldn't we add some checks and better error for our R Packages requirement and probably on Jupyter side too if we have some ? 

`quarto check knitr` should probably also check this. 

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [ ] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [ ] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cderv
2022-09-07T15:31:41Z
cderv
v1.3
closed
Check and inform about R packages minimum version requirement
https://github.com/quarto-dev/quarto-cli/issues/2336