Here is an equation.

\begin{equation} f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k} (#eq:binom) \end{equation}

You may refer to using `\@ref(eq:binom)`

, like see Equation \@ref(eq:binom).

Labeled theorems can be referenced in text using `\@ref(thm:tri)`

, for example, check out this smart theorem \@ref(thm:tri).

::: {.theorem #tri}
For a right triangle, if $c$ denotes the *length* of the hypotenuse
and $a$ and $b$ denote the lengths of the **other** two sides, we have
$$a^2 + b^2 = c^2$$
:::

Read more here https://bookdown.org/yihui/bookdown/markdown-extensions-by-bookdown.html.

The `bs4_book`

theme also includes special callout blocks, like this `.rmdnote`

.

::: {.rmdnote}
You can use **markdown** inside a block.

head(beaver1, n = 5)

:::

It is up to the user to define the appearance of these blocks for LaTeX output.

You may also use: `.rmdcaution`

, `.rmdimportant`

, `.rmdtip`

, or `.rmdwarning`

as the block name.

The R Markdown Cookbook provides more help on how to use custom blocks to design your own callouts: https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html

**Any scripts or data that you put into this service are public.**

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.