-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0-dev_history.Rmd
71 lines (61 loc) · 1.68 KB
/
0-dev_history.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
---
title: "Development actions history"
output: html_document
editor_options:
chunk_output_type: console
---
```{r description}
# Describe your package
fusen::fill_description(
pkg = here::here(),
fields = list(
Title = "Graphs of Australian temperatures in summer and winter",
Version = "0.1",
Description = "This package contains functions to download data for Australian weather stations and to graph their maximum and minimum daily temperatures in summer and winter.",
`Authors@R` = c(person(
"A", "Russo", email = "a.s.russo@outlook.com", role = c("aut", "cre")
))
),
overwrite = TRUE
)
# Define License with use_*_license()
usethis::use_gpl_license()
```
# Include datasets
```{r}
local({
knitr::knit("vignettes/dev_save_data.Rmd", output = tempfile())
usethis::use_data(Adelaide, overwrite = TRUE)
usethis::use_data(Brisbane, overwrite = TRUE)
usethis::use_data(Canberra, overwrite = TRUE)
usethis::use_data(Darwin, overwrite = TRUE)
usethis::use_data(Hobart, overwrite = TRUE)
usethis::use_data(Melbourne, overwrite = TRUE)
usethis::use_data(Perth, overwrite = TRUE)
usethis::use_data(Sydney, overwrite = TRUE)
})
```
```{r}
fusen::inflate(flat_file = "dev/data_doc.Rmd",
vignette_name = NA,
overwrite = TRUE)
```
# Set extra sources of documentation
```{r, eval=FALSE}
# README
usethis::use_readme_rmd()
```
# Inflate flat file
```{r development-inflate, eval=FALSE}
fusen::inflate(
flat_file = "dev/flat_minimal_package.Rmd",
vignette_name = "dev_save_data",
overwrite = TRUE,
open_vignette = FALSE
)
```
## Use everytime needed
```{r, eval=FALSE}
# Simulate package installation
pkgload::load_all()
```