https://stackoverflow.com/questions/14041601/documenting-equations-with-deqn-and-roxygen
\details{
The robust EWMA mean algorithm has the form
\ifelse{html}{\out{
<center href="https://www.codecogs.com/eqnedit.php?latex=\hat{\mu}_t&space;=&space;\hat{\mu}_{t-1}&space;+&space;(1-\lambda)\hat{\sigma}_{t-1}\psi_{\texttt{hub}}&space;\left(\frac{x_t-\hat{\mu}_{t-1}}{\hat{\sigma}_{t-1}}\right)" target="_blank"><img src="https://latex.codecogs.com/gif.latex?\hat{\mu}_t&space;=&space;\hat{\mu}_{t-1}&space;+&space;(1-\lambda)\hat{\sigma}_{t-1}\psi_{\texttt{hub}}&space;\left(\frac{x_t-\hat{\mu}_{t-1}}{\hat{\sigma}_{t-1}}\right)" title="\hat{\mu}_t = \hat{\mu}_{t-1} + (1-\lambda)\hat{\sigma}_{t-1}\psi_{\texttt{hub}} \left(\frac{x_t-\hat{\mu}_{t-1}}{\hat{\sigma}_{t-1}}\right)" /></center>
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.