### Bug description

I am unable to use `cat()` to print computed output from in-line R code, even though it works in a code chunk.

Example `qmd` file:

````---
title: "test"
format: html
execute:
  results: asis
---

<!-- nothing shows up -->
`r cat("hello")`

<!-- prints -->
`r "no cat here"`

```{r}
cat("hello") # prints
```
````

Output: 
<img width="1039" alt="quarto-cat-bug-png" src="https://user-images.githubusercontent.com/13459362/173477280-39f3b5e8-64dc-4209-90ee-f63b96edd064.png">

Output of `quarto check`:
```
[✓] Checking Quarto installation......OK
      Version: 0.9.579
      Path: /Applications/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.8.3 (Conda)
      Path: /Users/joelnitta/miniconda3/bin/python
      Jupyter: 4.10.0
      Kernels: python3

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

[✓] Checking R installation...........OK
      Version: 4.2.0
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Users/joelnitta/Dropbox/Jobs/2022/utsunomiya/renv/library/R-4.2/x86_64-apple-darwin17.0
        - /Library/Frameworks/R.framework/Versions/4.2/Resources/library
      rmarkdown: 2.14

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

IDE: vs-code v1.67.2

OS: Mac Monterey v12.4

R: v4.2.0

Output of `sessionInfo()`:

```
> sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur/Monterey 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.2.0 cli_3.3.0      tools_4.2.0    jsonlite_1.8.0 rlang_1.0.2   
[6] renv_0.15.5  
```

### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included a minimal, self-contained, and reproducible example?
- [X] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
2022-06-14T02:04:51Z
joelnitta
closed
cannot use `cat()` to print output from in-line R code
https://github.com/quarto-dev/quarto-cli/issues/1143