-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
66 lines (55 loc) · 1.03 KB
/
index.Rmd
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: "index.Rmd page"
date: 2021-07-27
output:
html_document:
code_folding: show
toc: true
toc_depth: 4
toc_float: true
mathjax: default
pdf_document:
latex_engine: xelatex
toc: true
toc_depth: 4
fontsize: 11pt
geometry: margin=0.4in,top=0.25in
TAGS: try_things_here
---
~/code/MASTER_INDEX.md
```{r setup, include=FALSE }
knitr::opts_chunk$set(
echo = TRUE,
comment = " ##",
error = TRUE,
collapse = T
) # T easier to read
```
### print line numbers (pdf only?)
```{r, attr.source='.numberLines'}
if (TRUE) {
x <- 1:10
x + 1
}
```
```{r library }
library(jimTools)
```
```{r skeleton, include=F, eval=F}
file <- "/home/jim/.config/nvim/templates/skeleton.Rmd"
```
```{r render, eval=FALSE, include=FALSE }
output_dir <- Sys.getenv("OUTPUT_DIR")
output_dir
{
file <- ""
file <- basename(file)
file <- here("rmd", file)
file
}
## replacement for here
if (F) {
the_dir <- dirname(file)
file <- file.path(the_dir, file)
}
```