### Bug description

This file fails to compile with quarto 1.4.84, running under Ubuntu 22.04:
````
---
title: test
format: pdf
---

```{r}
missing <- function(x) x
```
````
The error message is 
````
processing file: test.qmd
  |...................................                 |  67% (unnamed-chunk-1)

Quitting from lines 7-8 (test.qmd) 
Error in missing(options) && inherits(x, c("knit_image_paths", "html_screenshot",  : 
  invalid 'x' type in 'x && y'
Calls: .main ... process_group.block -> call_block -> block_exec -> eng_r -> unlist -> sew
                                                                                                            
Execution halted
````
The file compiles correctly with an Rmd extension and `output: pdf_document`.
[test.zip](https://github.com/quarto-dev/quarto-cli/files/11546182/test.zip)

Output of `quarto check`:

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.2: OK
      Dart Sass version 1.55.0: OK
      Deno version 1.33.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.84
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.6
      Path: /usr/bin/python3
      Jupyter: 4.9.1
      Kernels: ir, python2, python3

(|) Checking Jupyter engine render....[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /usr/lib/R
      LibPaths:
        - /data/rmcd/R/x86_64-pc-linux-gnu-library/4.3
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.42
      rmarkdown: 2.21

[✓] Checking Knitr engine render......OK



### Checklist

- [X] 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.
- [X] 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.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
cderv
2023-05-23T16:04:13Z
rmcd1024
bug knitr
Future
open
Compile fails when there is a function named "missing"
https://github.com/quarto-dev/quarto-cli/issues/5646