fluidPage(
title = 'Embed an HTML report from R Markdown/knitr',
sidebarLayout(
sidebarPanel(
withMathJax(), # include the MathJax library
selectInput('x', 'Build a regression model of mpg against:',
choices = names(mtcars)[-1])
),
mainPanel(
uiOutput('report')
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.