-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathindex.Rmd
More file actions
49 lines (45 loc) · 1.15 KB
/
Copy pathindex.Rmd
File metadata and controls
49 lines (45 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: "R for Loss Data Analytics"
author: "An open text authored by the Actuarial Community"
date: "`r Sys.Date()`"
description: This site provides files that generate R codes to support the online text Loss Data Analytics.
documentclass: book
link-citations: yes
bibliography:
- book.bib
- packages.bib
site: bookdown::bookdown_site
biblio-style: apalike
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(comment = NA, fig.align = "center")
```
```{r htmlTemp3, echo=FALSE, eval=TRUE}
codejs <- readr::read_lines("js/codefolding.js")
collapsejs <- readr::read_lines("js/collapse.js")
transitionjs <- readr::read_lines("js/transition.js")
htmlhead <-
paste('
<script>',
paste(transitionjs, collapse = "\n"),
'</script>
<script>',
paste(collapsejs, collapse = "\n"),
'</script>
<script>',
paste(codejs, collapse = "\n"),
'</script>
<style type="text/css">
.code-folding-btn { margin-bottom: 4px; }
.row { display: flex; }
.collapse { display: none; }
.in { display:block }
</style>
<script>
$(document).ready(function () {
window.initializeCodeFolding("show" === "hide");
});
</script>
', sep = "\n")
readr::write_lines(htmlhead, path = "header.html")
```