ascii and reStructuredText
Author: 
David Hajage 
email:  dhajage at gmail dot com 
sphinx output
> options(asciiType = "rest")
some code
> x < 2
> sqrt(x)
[1] 1.414214
> x^2
[1] 4
a table
> ascii(head(esoph))

agegp 
alcgp 
tobgp 
ncases 
ncontrols 
age 
1 
2534 
039g/day 
09g/day 
0.00 
40.00 
2534 
2 
2534 
039g/day 
1019 
0.00 
10.00 
2534 
3 
2534 
039g/day 
2029 
0.00 
6.00 
2534 
4 
2534 
039g/day 
30+ 
0.00 
5.00 
2534 
5 
2534 
4079 
09g/day 
0.00 
27.00 
2534 
6 
2534 
4079 
1019 
0.00 
7.00 
2534 
a list
> ascii(summary(table(1:4, 1:4)))
 Number of cases in table: 4
 Number of factors: 2
 Test for independence of all factors:
 Chisq = 12, df = 9, pvalue = 0.2133
 Chisquared approximation may be incorrect
some text
2+2 equal to 4.