File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ output: github_document
4
4
5
5
<!-- README.md is generated from README.Rmd. Please edit that file -->
6
6
7
- ``` {r, include = FALSE}
7
+ ``` {r}
8
+ #| include: false
8
9
knitr::opts_chunk$set(
9
10
collapse = TRUE,
10
11
comment = "#>",
@@ -28,13 +29,15 @@ The goal of treasury is to provide a simple and modern interface to the [US trea
28
29
29
30
You can install the released version of ** treasury** from [ CRAN] ( https://CRAN.R-project.org ) with:
30
31
31
- ``` {r, eval = FALSE}
32
+ ``` {r}
33
+ #| eval: false
32
34
install.packages("treasury")
33
35
```
34
36
35
37
And the development version from [ GitHub] ( https://github.com/ ) with:
36
38
37
- ``` {r, eval = FALSE}
39
+ ``` {r}
40
+ #| eval: false
38
41
# install.packages("pak")
39
42
pak::pak("m-muecke/treasury")
40
43
```
@@ -43,14 +46,21 @@ pak::pak("m-muecke/treasury")
43
46
44
47
treasury functions are prefixed with ` tr_ ` and follow the naming convention of the XML feed.
45
48
46
- ``` {r usage, message = FALSE, dpi = 300}
49
+ ``` {r}
50
+ #| label: usage
51
+ #| message: false
52
+ #| dpi: 300
47
53
library(treasury)
48
54
49
55
yield_curve <- tr_yield_curve(2023)
50
56
head(yield_curve)
51
57
```
52
58
53
- ``` {r plot, message = FALSE, echo = FALSE, dpi = 300}
59
+ ``` {r}
60
+ #| label: plot
61
+ #| message: false
62
+ #| echo: false
63
+ #| dpi: 300
54
64
library(ggplot2)
55
65
56
66
subset(yield_curve, maturity == "10 year") |>
You can’t perform that action at this time.
0 commit comments