$x = 3y+4$

This is a test: $$a$$, $$b$$, $$c=3x+5$$. End of the test.

$x = 3y+4$

This is a test: $$a$$, $$b$$, $$c=3x+5$$. End of the test.

shinyUI(
navbarPage("",
tabPanel("ui.R", pre(includeText("ui.R"))),
tabPanel("server.R", pre(includeText("server.R"))),
)
)

shinyServer(function(input, output){

})
---
title: "Test Latex"
output:
html_document:
mathjax: "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
runtime: shiny
---

$$x = 3y+4$$

This is a test:  $a$, $b$, $c=3x+5$.  End of the test.