-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPPENDIX_mypackage.qmd
79 lines (63 loc) · 1.65 KB
/
APPENDIX_mypackage.qmd
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
---
title: "`mypackage` files"
---
These files contain all the code we created to populate the `mypackage` package.
Your Files should contain:
## `hello.R`
```{r, eval=FALSE, code=readLines("appendices/mypackage/hello.R")}
#| filename: "R/hello.R"
```
## `test-hello.R`
```{r, eval=FALSE, code=readLines("appendices/mypackage/test-hello.R")}
#| filename: "tests/testthat/test-hello.R"
```
## `README.Rmd`
```{r echo=FALSE, message=TRUE, comment=""}
#| filename: "README.Rmd"
message(readr::read_file(here::here("appendices","mypackage", "README.Rmd")))
```
## `DESCRIPTION`
```{r, eval=FALSE, code=readLines("appendices/mypackage/DESCRIPTION")}
#| filename: "DESCRIPTION"
```
### Final Package structure
Including all auto-generated files
```
.
├── DESCRIPTION
├── LICENSE
├── LICENSE.md
├── NAMESPACE
├── R
│ └── hello.R
├── README.Rmd
├── README.md
├── _pkgdown.yml
├── docs
│ ├── 404.html
│ ├── LICENSE-text.html
│ ├── LICENSE.html
│ ├── authors.html
│ ├── deps
│ │ ├── bootstrap-5.3.1
│ │ ├── data-deps.txt
│ │ └── jquery-3.6.0
│ ├── index.html
│ ├── link.svg
│ ├── pkgdown.js
│ ├── pkgdown.yml
│ ├── reference
│ │ ├── Rplot001.png
│ │ ├── hello.html
│ │ └── index.html
│ ├── search.json
│ └── sitemap.xml
├── man
│ └── hello.Rd
├── project.Rproj
└── tests
├── testthat
│ ├── _snaps
│ └── test-hello.R
└── testthat.R
```