Code
with_demo_project(1 + 1, dir = "unexisting-dir")
Condition
Error in `local_demo_project()`:
x Can't find the directory 'unexisting-dir'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.