-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
81 lines (55 loc) · 2.46 KB
/
README.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# sedapRmd
<!-- badges: start -->
<!-- badges: end -->
A package with an RMarkdown template to create an abnTeX2 research project for the SEDAP protected data access room...
## Installation
You can install the development version of sedapRmd from [Github](https://github.com/fcsest/sedapRmd) with:
``` r
# Install LaTeX Engine to compile the template
install.packages("tinytex")
# Installing template from package
#devtools::install_github("sedapRmd")
remotes::install_github("sedapRmd")
```
## Example
After installing we can select the Rmd template in RStudio:
```{r, echo=FALSE, out.width="50%", eval=TRUE}
knitr::include_graphics("https://raw.githubusercontent.com/fcsest/sedapRmd/master/inst/img/my_proj.png")
```
A example of yaml will be defined, change the variables for your project:
```{r, echo=FALSE, out.width="50%", eval=TRUE}
knitr::include_graphics("https://raw.githubusercontent.com/fcsest/sedapRmd/master/inst/img/yaml.png")
```
Which chapter will be inside a chunk as RMarkdown file...
```{r, echo=FALSE, out.width="50%", eval=TRUE}
knitr::include_graphics("https://raw.githubusercontent.com/fcsest/sedapRmd/master/inst/img/using_template.png")
```
So you can edit chapters on RMarkdown files inside the folder `capitulos`...
```{r, echo=FALSE, out.width="50%", eval=TRUE}
knitr::include_graphics("https://raw.githubusercontent.com/fcsest/sedapRmd/master/inst/img/chapters.png")
```
**NOTE:** Inside the chapter files, use **\#** for **section**, **\#\#** for **subsection** and **\#\#\#** for **subsubsection**.
And edit references on `references.bib` inside the folder called `arquivos_tex`...
```{r, echo=FALSE, out.width="50%", eval=TRUE}
knitr::include_graphics("https://raw.githubusercontent.com/fcsest/sedapRmd/master/inst/img/references.png")
```
And if you want to edit the template in LaTeX, open the `abnTeX2_template.tex` inside `arquivos_tex` folder...
```{r, echo=FALSE, out.width="50%", eval=TRUE}
knitr::include_graphics("https://raw.githubusercontent.com/fcsest/sedapRmd/master/inst/img/tex_file.png")
```
To create the pdf file of project in book format and/or online format, you can call the `create_pdf_proj()` function like:
``` r
create_pdf_proj("My_proj", format = "both", output_dir = "./pdf_files")
```