Skip to content

Commit bf40e56

Browse files
committedMay 22, 2018
Fix bug in vignette.
1 parent 6374ccb commit bf40e56

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
lines changed
 

‎DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: BIS
22
Type: Package
33
Title: Programmatic Access to Bank for International Settlements Data
4-
Version: 0.2.0
4+
Version: 0.2.1
55
Authors@R: person("Eric", "Persson", email = "expersso5@gmail.com",
66
role = c("aut", "cre"))
77
Description: Provides an interface to data provided by the Bank for International

‎README-plot-1.png

-50 Bytes
Loading

‎README.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ different formats.
5252
The following code loads monthly data on central banks' policy rates:
5353

5454
```{r rates}
55-
rates <- get_bis(datasets$url[16], quiet = TRUE)
55+
rates <- get_bis(datasets$url[datasets$name == "Policy rates (monthly)"], quiet = TRUE)
5656
head(rates)
5757
```
5858

‎README.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,35 @@ library(BIS)
2222

2323
datasets <- get_datasets()
2424
head(datasets, 20)
25-
## # A tibble: 17 x 2
25+
## # A tibble: 18 x 2
2626
## name url
2727
## <chr> <chr>
2828
## 1 Locational banking statistics https://www.b~
2929
## 2 Consolidated banking statistics https://www.b~
3030
## 3 Debt securities statistics https://www.b~
31-
## 4 Global liquidity indicators https://www.b~
32-
## 5 Credit to the non-financial sector https://www.b~
33-
## 6 Credit-to-GDP gaps https://www.b~
34-
## 7 Debt service ratios for the private non-financial sector https://www.b~
35-
## 8 Property prices: selected series https://www.b~
36-
## 9 Property prices: long series https://www.b~
37-
## 10 US dollar exchange rates (monthly, quarterly and annual) https://www.b~
38-
## 11 US dollar exchange rates (daily) https://www.b~
39-
## 12 Effective exchange rate indices (monthly) https://www.b~
40-
## 13 Effective exchange rate indices (daily) https://www.b~
41-
## 14 Triennial Survey statistics on turnover https://www.b~
42-
## 15 Consumer prices https://www.b~
43-
## 16 Policy rates (monthly) https://www.b~
44-
## 17 Policy rates (daily) https://www.b~
31+
## 4 Credit to the non-financial sector https://www.b~
32+
## 5 Credit-to-GDP gaps https://www.b~
33+
## 6 Debt service ratios for the private non-financial sector https://www.b~
34+
## 7 Global liquidity indicators https://www.b~
35+
## 8 OTC derivatives outstanding https://www.b~
36+
## 9 US dollar exchange rates (monthly, quarterly and annual) https://www.b~
37+
## 10 US dollar exchange rates (daily) https://www.b~
38+
## 11 Effective exchange rate indices (monthly) https://www.b~
39+
## 12 Effective exchange rate indices (daily) https://www.b~
40+
## 13 Triennial Survey statistics on turnover https://www.b~
41+
## 14 Property prices: selected series https://www.b~
42+
## 15 Property prices: long series https://www.b~
43+
## 16 Consumer prices https://www.b~
44+
## 17 Policy rates (monthly) https://www.b~
45+
## 18 Policy rates (daily) https://www.b~
4546
```
4647

4748
The function `get_bis` takes a url as input and downloads and parses the corresponding CSV file from the BIS website. This automatic parsing of the data is the major contribution of this package, since the different CSVs follow different formats.
4849

4950
The following code loads monthly data on central banks' policy rates:
5051

5152
``` r
52-
rates <- get_bis(datasets$url[16], quiet = TRUE)
53+
rates <- get_bis(datasets$url[datasets$name == "Policy rates (monthly)"], quiet = TRUE)
5354
head(rates)
5455
## # A tibble: 6 x 6
5556
## freq frequency ref_area reference_area date obs_value

‎cran-comments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
0 errors | 0 warnings | 0 note
88

9-
* This is a new release.
9+
* Fixed bug causing vignette not to build.
1010

1111
## Reverse dependencies
1212

‎vignettes/BIS.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ different formats.
5151
The following code loads monthly data on central banks' policy rates:
5252

5353
```{r rates}
54-
rates <- get_bis(datasets$url[16], quiet = TRUE)
54+
rates <- get_bis(datasets$url[datasets$name == "Policy rates (monthly)"], quiet = TRUE)
5555
head(rates)
5656
```
5757

0 commit comments

Comments
 (0)
Please sign in to comment.