You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -33,6 +33,7 @@ pagetitle: "Report with R Markdown - part 2"
33
33
footer: "Report with R Markdown - R4Rchaeologists <img src='https://raw.githubusercontent.com/zoometh/thomashuet/master/teach/www/logo.png' style='height: 35px;vertical-align: middle;'> Università di Pisa, Jan 2025 - <em>presented by </em> Thomas Huet"
<td>prevents `code` and `results` from appearing in the rendered file. R Markdown still runs the code in the chunk, and the results can be used by other chunks.</td>
176
+
<td>prevents `code` and `output` from appearing in the rendered file. R Markdown still runs the code in the chunk, and the output can be used by other chunks.</td>
176
177
</tr>
177
178
<tr>
178
179
<td>`echo = FALSE`</td>
179
-
<td>prevents `code`, but not the results from appearing in the rendered file.</td>
180
+
<td>prevents `code`, but not the output, from appearing in the rendered file.</td>
Locate the bibliographic file (e.g. [`references.bib`](https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2025/references.bib)).
390
393
@@ -411,6 +414,9 @@ see [Xie <em>et al.</em>](https://bookdown.org/yihui/rmarkdown/html-document.htm
411
414
412
415
\
413
416
417
+
# More HTML
418
+
419
+
414
420
## Styling
415
421
416
422
::: {.panel-tabset}
@@ -544,6 +550,9 @@ Customize with CSS like this <notes>**dodgerblue** background</notes>.
544
550
545
551
:::
546
552
553
+
# Advanced publishing
554
+
555
+
547
556
## Interactivity
548
557
549
558
::: {.panel-tabset}
@@ -560,7 +569,7 @@ runtime: shiny
560
569
</div>
561
570
562
571
::: {.callout-note}
563
-
Try: `File > New File > Rmarkdown > Shiny`, or in the <spanclass="r-yaml">YAML header</span>. There are different ways to use <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-prg-r-pkg-shiny.png'style='height: 45px;vertical-align: middle;'> in <spanclass="r-md">R Markdown</span>, for example by embedding an <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-prg-html.png'style='height: 45px;vertical-align: middle;'> widget created by Shiny outside the R Markdown document, or by embedding the Shiny coding directly.
572
+
Try: `File > New File > Rmarkdown > Shiny`, or in the <spanclass="r-yaml">YAML header</span>. There are different ways to use <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/r-pkg-shiny.png'style='height: 45px;vertical-align: middle;'> in <spanclass="r-md">R Markdown</span>, for example by embedding an <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-prg-html.png'style='height: 45px;vertical-align: middle;'> widget created by Shiny outside the R Markdown document, or by embedding the Shiny coding directly.
564
573
:::
565
574
\
566
575
@@ -645,6 +654,10 @@ output: html_document
645
654
646
655
## PDF
647
656
657
+
::: {.panel-tabset}
658
+
659
+
### Basic
660
+
648
661
<divclass="div-yaml">
649
662
<small>header YAML</small>
650
663
```{.md code-line-numbers="4"}
@@ -658,9 +671,10 @@ output: pdf_document
658
671
659
672
660
673
::: {.callout-note}
661
-
For advanced editing, read below ⬇️
674
+
For advanced editing, read the other tab panel ️➡️
662
675
:::
663
676
677
+
### Advanced
664
678
665
679
<imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/r-pkg-bookdown.png'style='height: 70px;vertical-align: middle;'> is useful in <spanclass="r-md">R Markdown</span> for chunk calls, and more generally for cross-referencing. <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-pao-adobe-pdf.png'style='height: 45px;vertical-align: middle;'> uses <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-pao-latex.png'style='height: 45px;vertical-align: middle;'> syntax, if you don't have [MiKTeX](https://miktex.org/) installed, you need to install the <imgsrc="https://raw.githubusercontent.com/zoometh/thomashuet/master/img/r-pkg-tinytex.png"style="height: 70px;vertical-align: middle;"/> package [@Xie19].
666
680
@@ -698,6 +712,8 @@ These temporary files are creates:
698
712
699
713
At the end of the rendering, these files are deleted.
700
714
715
+
:::
716
+
701
717
\
702
718
703
719
## LaTeX
@@ -729,7 +745,7 @@ On <img src="https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app
@@ -776,16 +792,12 @@ On GitHub <img src="https://raw.githubusercontent.com/zoometh/thomashuet/master/
776
792
777
793
### Objective
778
794
779
-
<small>
780
-
781
795
Use <spanclass="r-md">R Markdown</span> (<spanclass="r-code">code chunks</span> and <spanclass="r-text">narrative parts</span>) to create a report. Choose between:
782
796
783
-
-[ ] improve the `.Rmd` document: "Münsingen-Rain necropolis (Bern, Switzerland). A quantative study of Late Iron Age fibulae" <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/teach/www/munsingen_fib_measures.png'style='height: 65px;vertical-align: middle;'> using the dataset 'Fibulae' from {`archdata`}
797
+
-[ ] improve the `.Rmd` document: "*Münsingen-Rain necropolis (Bern, Switzerland). A quantative study of Late Iron Age fibulae*" using the dataset 'Fibulae' from {`archdata`}
784
798
785
799
-[ ] start from scratch ([here](https://zoometh.github.io/thomashuet/teach/stats/r4a/2025/site/index-part1#/new-document)) and select another dataset from {`archdata`} (e.g. 'Handaxes').
786
800
787
-
</small>
788
-
789
801
::: {.callout-note}
790
802
The practical part has an estimated duration of 60 minutes
791
803
:::
@@ -794,30 +806,25 @@ The practical part has an estimated duration of 60 minutes
794
806
795
807
### How to start?
796
808
797
-
<small>Download/Copy the folder `r4a/2025/practice/` and locate the file `2_Rmarkdown_Practice.Rmd` and the .`bib` file by following this link: </small>
809
+
1.Download/Copy the folder `r4a/2025/practice/` and locate the file `2_Rmarkdown_Practice.Rmd` and the .`bib` file by following this link:
0 commit comments