DRAFT

1 Abstract

This document contains the followings;

  • style.css
  • header.html
  • footer.html
  • rubbishheader.html

Things you should take note of are;

  • html output: html_document vs bookdown::html_document2 (contains internal link function)
  • header.html: without external header.html vs with external header.html
  • footer.html: show separate contents

2 Basic use

  • End a line with two spaces to start a new paragraph.
  • That is not bold.
  • inline code
  • sub2
  • superscript2
  • strikethrough
  • ellipsis: …
  • It is a dashline –
  • Another dashline —

Text here!

This is block quote.
—Stewart Li

  1. ordered list
  2. item 2
  • sub-item 1
  • sub-item 2
Table Header Second Header
Table Cell Cell 2
Cell 3 Cell 4

A footnote 1

2.1 Horizontal lines

Insert a line


or


2.2 Skip a line

A first sentence



A seconde sentence

2.3 Highlight a piece of text

  • This is my first conclusion
  • This is my second conclusion

2.4 Equations

This summation expression \(\sum_{i=1}^n X_i\) appears inline.

\[A = \pi*r^{2}\]

2.5 Center an image

FigName

Image 1Image 2

R Audit logo

Figure 2.1: R Audit logo

2.6 White space around img

2.7 Embedded vedios

  • Can not be displayed: http vs https vs restrictions
  • or html tag a

knitr::include_url(“http://www.youtube.com/embed/9bZkp7q19f0?rel=0”)

2.8 Tabs for sub-chapters

Save space in your document using buttons or tabs for sub chapters.

3 Column layout

3.1 Two columns

  • The following html codes contain two coloumn layout, text highlight, and figure caption. Refer to stackflow for more.

3.2 Grid columns

  • This example shows how to use CSS Grid in the rmarkdown document. Refer to holtzy for more.



Since R Markdown use the bootstrap framework under the hood. It is possible to benefit its powerful grid system. Basically, you can consider that your row is divided in 12 subunits of same width. You can then choose to use only a few of this subunits.



Here, I use 3 subunits of size 4 (4x3=12). The last column is used for a plot. You can read more about the grid system here. I got this result showing the following code in my R Markdown document.

4 Internal struture

4.1 Two figures in a row

4.2 Figures caption

Here is a really important caption.

Figure 4.1: Here is a really important caption.

4.3 Use DT

5 Communication

5.1 Share html files

  • You need a github account.
  • Name your .rmd file index.rmd. Knit it to have a index.html file.
  • Create a repository on github with your working folder.
  • On your github online repo go to Settings -> GitHub Pages -> Source -> Master Branch -> Save.
  • Wait a little, your .html file will be available at username.github.io/repoName

5.2 Create a template

6 References

HTML/CSS;

Rmarkdown;

Useful links;


  1. here is the footnote text.

 

R Audit Solution LLP

China | Singapore | New Zealand

stewardli8@msn.com