if (grepl("proportions", x$method)) { compile_template("prop.test", x = x, theme = theme) } else { compile_template("htest.default", x = x, theme = theme) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.