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
Copy file name to clipboardExpand all lines: teach/stats/r4a/2025/index-part2.qmd
+44-30
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ format:
29
29
width: 1200
30
30
bibliography: references.bib
31
31
pagetitle: "Report with R Markdown - part 2"
32
-
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, Feb 2024 - <em>presented by </em> Thomas Huet"
32
+
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"
33
33
---
34
34
35
35
@@ -66,26 +66,30 @@ R <span class="r-code">code chunks</span> are placeholders for the coding part o
66
66
67
67
### Headers options
68
68
69
+
Options are used to show/hide the code, change the size and set the alignment of the ouptut, etc.
The top chunk of the `.Rmd` file is commonly used to set global options for all subsequent chunks, unless you override these options locally within the headers of individual code chunks.
The top chunk of the `.Rmd` file is commonly used to set global options for all subsequent chunks, unless you override these options locally within the headers of individual code chunks.
The <spanclass="r-yaml">YAML header</span> is the <spanclass="r-md">R Markdown</span> document header, it contains the metadata (e.g, title), the document output format (e.g, PDF) and configuration (e.g. table of content). It is composed on **key - value** pairs:
287
+
284
288
<divclass="div-yaml">
285
289
<small>header YAML</small>
286
290
```{.yml}
@@ -292,8 +296,6 @@ date: '2023-02-05'
292
296
```
293
297
</div>
294
298
295
-
<spanclass="r-yaml">YAML header</span> is the document header, it contains the metadata (e.g, title), the document output format (e.g, PDF) and configuration (e.g. table of content). It is composed on **key - value** pairs:
Select the output format, here a PDF: <small><https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2024/temp.pdf></small>
356
+
Here a PDF: <small><https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2025/temp.pdf></small>
@@ -358,7 +362,7 @@ Select the output format, here a PDF: <small><https://github.com/zoometh/thomash
358
362
359
363
## YAML table of content
360
364
361
-
Table of content (TOC)
365
+
Table of content (TOC).
362
366
363
367
<divclass="div-yaml">
364
368
<small>header YAML</small>
@@ -381,6 +385,8 @@ output:
381
385
382
386
## YAML references
383
387
388
+
Locate the bibliographic file (e.g. [`references.bib`](https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2025/references.bib)).
389
+
384
390
<divclass="div-yaml">
385
391
<small>header YAML</small>
386
392
```{.yml code-line-numbers="5"}
@@ -393,7 +399,7 @@ bibliography: references.bib
393
399
```
394
400
</div>
395
401
396
-
Reference the bibliographic file (e.g. [`references.bib`](https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2024/references.bib)). Here in the same folder as the `.Rmd` file.
402
+
Here in the same folder as the `.Rmd` file.
397
403
398
404
399
405
```{=html}
@@ -515,7 +521,7 @@ Customize with CSS like this <notes>**dodgerblue** background</notes>.
515
521
516
522
:::
517
523
518
-
## HTML online editor
524
+
## HTML online editor {data-visibility=hidden}
519
525
520
526
::: {.panel-tabset}
521
527
@@ -543,7 +549,7 @@ Customize with CSS like this <notes>**dodgerblue** background</notes>.
543
549
544
550
### Shiny
545
551
546
-
<imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-prg-r-pkg-shiny.png'style='height: 45px;vertical-align: middle;'> offers a framework to create interactive documents
552
+
Interactivity with the <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-prg-js.png'style='height: 45px;vertical-align: middle;'> package (for the client-side) <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/r-pkg-shiny.png'style='height: 45px;vertical-align: middle;'>
547
553
548
554
<divclass="div-yaml">
549
555
<small>header YAML</small>
@@ -742,63 +748,71 @@ On GitHub <img src="https://raw.githubusercontent.com/zoometh/thomashuet/master/
The practical part has an estimated duration of 60 minutes
769
-
:::
778
+
<small>
779
+
780
+
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:
770
781
771
-
Use <spanclass="r-md">R Markdown</span> (<spanclass="r-code">code chunks</span> and <spanclass="r-text">narrative parts</span>) to create a report. Choice between:
782
+
-[ ] 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`}
772
783
773
-
-[ ] start from scratch ([here](https://zoometh.github.io/thomashuet/teach/stats/r4a/2024/site/index-part1#/new-document))
784
+
-[ ] 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').
774
785
775
-
-[ ] improvement of the existing `.Rmd` model for the <imgsrc='https://raw.githubusercontent.com/zoometh/thomashuet/master/teach/www/munsingen_fib_measures.png'style='height: 65px;vertical-align: middle;'> fibulae from the Münsingen cemetery
786
+
</small>
776
787
777
-
-[ ] select another dataset from the {`archdata`} package (e.g. 'Handaxes'), to improve the `.Rmd` template
788
+
::: {.callout-note}
789
+
The practical part has an estimated duration of 60 minutes
790
+
:::
778
791
779
792
\
780
793
781
-
### Data
794
+
### How to start?
795
+
796
+
<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>
782
797
783
-
Download the folder `r4a/2024/practice/` and locate the file `2_Rmarkdown_Practice.Rmd`:
or go here: [https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2024/practice/2_Rmarkdown_Practice.Rmd](https://github.com/zoometh/thomashuet/tree/main/teach/stats/r4a/2024) and download, or copy/paste this `.Rmd` file and the .`bib` file.
795
-
809
+
\
796
810
\
797
811
798
812
799
-
### Output
813
+
### How to end?
800
814
801
-
Contact me, send me your `.Rmd`, connected files (e.g. `references.bib`) here 👋 online
815
+
Contact me, send me your `.Rmd` and related files (e.g. `references.bib`) here online 👋
0 commit comments