Following the recipe you linked to, where knitr::inline_expr usage is shown, should have work:
---
title: "Test inline expr"
output: html_document
---
To use `chunk_reveal("walrus", title = "## Walrus operator")` inline, you can wrap it in R inline chunk like this `` `r knitr::inline_expr('chunk_reveal("walrus", title = "## Walrus operator")')` ``
Did that not work for you ?
- Using
knitr::inline_expr()
- Using double backtick at both side to wrap the inline chunk
I let you try and tell me if that works for you.