# install.packages('tinytex')
# tinytex::install_tinytex()
For each sub-level instead of one tab, include two:
Blockquotes are very handy in email to emulate reply text.
This line is part of the same quote.
Quote break.
This is a very long line that will still be quoted properly when it wraps. Oh boy let’s keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.
verbatim code
Example of verbatim code: This command print(summary(reg))
prints the regression result. Emphasis, aka italics, with asterisks or underscores. Strong emphasis, aka bold, with asterisks or underscores. Combined emphasis with asterisks and underscores. Strikethrough uses two tildes. Scratch this.
Markdown | Less | Pretty |
---|---|---|
Still | renders |
nicely |
1 | 2 | 3 |
https://www.google.com https://www.google.com I’m an inline-style link with title I’m an inline-style link without title
A link.
Most browsers show the title text when hovering over a link.
Please note that WordPress shortcodes, like [video] or [audio], will take priority over Markdown links and shouldn’t be used for link text.
OBS: PDF Rendering issue: (do not add “/” in the end of the web address) OBS: Links do not appear blue in PDFs with the convetional syntax
Hyperlinks in R Markdown PDF output https://edpflager.com/?p=4184
link text. not blue . underline but not blue
Blue and underline: substitutes text for the URL just shows the URL substitutes text for the URL just shows the URL
Logo:
# The bookdown book does a great job of explaining that the best way to include images is by using include_graphics() . For example, a full width image can be printed with a caption below:
# ```{r pressure, echo=FALSE, fig.cap="A caption", out.width = '100%'}
# knitr::include_graphics("temp.png")
# ```
The “Alt” text (alternative text) makes images accessible to visually impaired
Just “copy the embedded code” in any youtube video and paste here:
Markdown converts text to HTML. Just hover the mouse over to see the definition
*[HTML]: HyperText Markup Language
This is another answer
This is a hidden text block!
Here is the word/phrase you need a note on
library(tippy)
## Warning: package 'tippy' was built under R version 3.6.2
tippy("like this", "Here's the tooltip")
x=10
y = 15 + r.x
print(y)
## 25.0
exit
## Use exit() or Ctrl-Z plus Return to exit
Then, we can display it in the middle of a text, like in the example below: This year the profits of their two companies will be 10 and 30.
bbb
Centered text, image and video here.
your image caption
OBS: Only LOCAL Images works with Embedded with PDF, URLs of Images are not rendering in PDF
#
library(plotly)
## Warning: package 'plotly' was built under R version 3.6.2
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
##
p <- plotly::plot_ly(type = "scatter3d" ,
x = c( 9, 8, 5, 1 ) ,
y = c( 1, 2, 4, 8 ) ,
z = c( 11, 8, 15, 3 ) ,
mode = "lines+markers") ; p
https://www.calvin.edu/~rpruim/courses/m343/F12/RStudio/LatexExamples.html OBS: Latex formulas need internet connection to be rendered in HTML! https://yihui.org/en/2018/07/latex-math-markdown/ + https://github.com/rstudio/rmarkdown/issues/1283 + https://github.com/yihui/xaringan/issues/119 + http://jkorpela.fi/math/
\(\binom{k}{n}\) \[\frac{\partial f}{\partial x}\] \[\displaystyle \int_0^{\infty}\]
\(\displaystyle \lim_{x\to\infty}\) \[\lim_{x\to\infty}\] \(\alpha A\) \[\gamma \Gamma \epsilon E \sigma \Sigma\]
\[ e^{i \pi} = -1 \] \[ e^{i \pi} = -1 \] \[e^{i \pi} = -1\]
\[\left( \sum_{i=1}^{n}{i} \right)^2 = \left( \frac{n(n-1)}{2}\right)^2 = \frac{n^2(n-1)^2}{4}\] For PDF: \[\begin{eqnarray} X & \sim & \mathrm{N}(0,1)\\ Y & \sim & \chi^2_{n-p}\\ R & \equiv & X/Y \sim t_{n-p} \end{eqnarray}\]
For HTML: \[\begin{eqnarray} X & \sim & \mathrm{N}(0,1)\\ Y & \sim & \chi^2_{n-p}\\ R & \equiv & X/Y \sim t_{n-p} \end{eqnarray}\]