### Bug description

Hi,

First, thanks for this awesome Quarto!

I am trying to render a quarto document containing gt tables and have an issue.
The document does not render if the .qmd file is located in a subdirectory of my project directory (with option execute-dir: project). The document renders well without the gt table or if the document is located at the root of the project directory.

The error is:

Quitting from lines 29-31 (test.qmd)
Error in readLines(con, warn = FALSE) : cannot open the connection
Calls: .main ... -> enumerate_output_formats -> read_utf8 -> readLines

Any idea?
Running Rstudio 2022.07.2 on Windows.
Thanks,
Thomas.

Here is a small code to reproduce:

````
---
title: "Untitled"
format: html
editor: visual
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

## Running Code

When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

```{r}
library(gt)
gt(airquality)
```
````

### 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.
cderv
2022-10-23T16:41:21Z
tdemarchin
bug tables
v1.2
closed
 Rstudio: Quarto file within a subdirectory and gt tables not rendering
https://github.com/quarto-dev/quarto-cli/issues/2996