### Bug description

Good day,

My system specifications are:
* MacOS Ventura 13.3
* M1 Mac
* Quarto v1.3.302, to which I upgraded from the previous version, v1.2.475
* RStudio Version 2023.03.0+386

After the upgrade I encounter the folowing error when I render a Quarto document (with R code included) to html from within RStudio and I have been unable to find a solution or even a mention of this problem elsewhere on the internet:

```
ERROR: Error resolving include-after- unable to open file js.html
```

The website being rendered is https://tangledbank.netlify.app/, which was made with Quarto v1.2.475 within RStudio. I have not tried to render the website Quarto v1.3.302 outside of RStudio.

The output of `quarto check` is here:

```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.302
      Path: /Applications/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.13 (Conda)
      Path: /Users/ajsmit/opt/anaconda3/bin/python
      Jupyter: 4.11.1
      Kernels: python3

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

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

Don't believe the output that says that a version of R cannot be found on my system--it is there and it works.

Herewith a reproducible example:

```
---
date: "2021-01-01"
title: "4. A problem file"
subtitle: "Getting familiar with data handling in R"
bibliography: ../../references.bib
csl: ../../marine-biology.csl
format:
  html: 
    toc-location: right
---

# My heaidng

My text. This problem occurs whether or not I include code chunks.
```

Has this been encountered before? And if so, are you aware or any solutions?

I am unsure whether this an issue on my end, or something the developers should know about.

PS: The Checklist asks for a .qmd file that reproduces the problem, but the system does not actually allow .qmd files to be uploaded.

Thank you,
AJ Smit

### 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.
2023-04-03T08:52:22Z
ajsmit
needs-repro
closed
Error resolving include-after- unable to open file js.html
https://github.com/quarto-dev/quarto-cli/issues/5073