### Discussed in https://github.com/quarto-dev/quarto-cli/discussions/931

<div type='discussions-op-text'>

<sup>Originally posted by **bbartholdy** May 19, 2022</sup>
Hi,

I have a quarto document (let's call it *file1.qmd*) where I would like to include a second quarto document (*_file2.qmd*) that contains the following text and inline R code:

```
This is a file to test the execution of includes inline code.

Inline code test: `r version$version.string`
```

In *file1.qmd* I have the shortcode `{{< include _file2.qmd >}}`

When I render *file1.qmd* with quarto (v. 0.9.426) it currently looks like:

>This is a file to test the execution of includes inline code.
>
>Inline code test: `r version$version.string`

I would like it to look like:

>This is a file to test the execution of includes inline code.
>
>Inline code test: R version 4.2.0 (2022-04-22)

Am I doing something wrong or is it currently not possible to include files with inline R code and have the inline code executed?</div>

This is likely our engine detection going wrong after include expansion.
cscheid
2022-05-19T14:47:00Z
cscheid
closed
Include shortcode not rendering inline R code
https://github.com/quarto-dev/quarto-cli/issues/932