1. Add one line between elements:
* Item 1
* Item 2
* Item 3
<p> </p>
* Item 4
* Item 5
* Item 6
Displayed
- Item 1
- Item 2
- Item 3
- Item 4
- Item 5
- Item 6
2. Nested Lists
1. Item 1
1. A corollary to the above item.
2. Yet another point to consider.
2. Item 2
* A corollary that does not need to be ordered.
* This is indented eight spaces, because it is four spaces further than the item above.
* You might want to consider making a new list.
3. Item 3
Displayed
- Item 1
- A corollary to the above item.
- Yet another point to consider.
- Item 2
- A corollary that does not need to be ordered.
- This is indented eight spaces, because it is four spaces further than the item above.
- You might want to consider making a new list.
- A corollary that does not need to be ordered.
- Item 3
3. Inline Links
The following hyperlink to https://in.bgu.ac.il/en/pages/default.aspx has link text that says ""Visit BGU!": [Visit BGU!](https://in.bgu.ac.il/en/pages/default.aspx).
Displayed
The following hyperlink to https://in.bgu.ac.il/en/pages/default.aspx has link text that says "“Visit BGU!”: Visit BGU!.
4. Tables
By default, columns are left aligned. You can specify the alignment of any column by adding colons into each column of the header row separator, on the left (for left alignment), right (for right alignment), or both sides (for center alignmnent).
Note: Although you may wish to line up the pipes between each column for ease of reading, it isn’t required (see the example below).
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -------------:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
| Left-Aligned | Center Aligned | Right Aligned |
|---|---|---|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
5. Insert one local image in R markdown and center it
knitr::include_graphics(rep('C:/Users/Kaining/Pictures/Saved Pictures/FAAB.jpg'))Logo of FAAB
# Take care to use '/' instead of '\' in the image path
# Use {r, echo=T, fig.align='center'} after three dots
6. Insert one local image in R markdown and repeat it for 3 times
knitr::include_graphics(rep('C:/Users/Kaining/Pictures/Saved Pictures/FAAB.jpg',3))
# Take care to use '/' instead of '\' in the image path
7. Insert multiple local images in R markdown
knitr::include_graphics(c('C:/Users/Kaining/Pictures/Saved Pictures/BGU.png',
'C:/Users/Kaining/Pictures/Saved Pictures/FAAB.jpg',
'C:/Users/Kaining/Pictures/Saved Pictures/Agriculture.png'))
# Take care to use '/' instead of '\' in the image pathBGU,FAAB, and Agriculture department logos
8. Steps to create slides and publish on Github
1. Greate a R project
2. Creat R markdown inside this project https://silvia.rbind.io/blog/deploying-xaringan-slides/
3. Choose Xaringan template to write a slide
4. If there is images, need to be in the same folder with this .rmd file
5. To preview the slides, use function ‘xaringan::inf_mr()’
6. Greate a Github account then make a new empty repository
7. Publsih it on Github
Shortcut
1. To knit: Ctrl + Shift + K
2. To live preview the output: xaringan::inf_mr()