### Bug description

In the recently released **knitr** version 1.43 a bug was fixed relating to cropping of pdf images on Windows. Previously an external Ghostscript executable was unnecessarily being checked for. This is unnecessary on Windows because (only on Windows) TeXLive/TinyTeX and MikTeX all bundle their own version of Ghostscript within their installations.

Quarto copied the incorrect **knitr** logic, so I recommend updating as per **knitr**. Please see <https://github.com/yihui/knitr/issues/2246> for more information and  <https://github.com/yihui/knitr/commit/4953bec489479bcef6eeb2f52cb9be40daabe47b> for the updated logic in **knitr**.

I think the fix will need to come around here <https://github.com/quarto-dev/quarto-cli/blob/d62f23fcee4cfad08fd004a540aba099ff5c7303/src/resources/rmd/execute.R#L277>

### Steps to reproduce

_No response_

### Expected behavior

_No response_

### Actual behavior

_No response_

### Your environment

_No response_

### Quarto check output

_No response_
cderv
2023-05-29T20:44:03Z
remlapmot
bug knitr
v1.4
open
Correctly check ghostscript for cropping on Windows as per knitr 1.43
https://github.com/quarto-dev/quarto-cli/issues/5734