Skip to content

Commit a1e1b86

Browse files
committed
function to allow user to set internal rdhs client
1 parent 934e52e commit a1e1b86

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

‎DESCRIPTION‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: rdhs
22
Type: Package
33
Title: API Client and Dataset Management for the Demographic and Health Survey (DHS) Data
4-
Version: 0.8.2
4+
Version: 0.8.4
55
Authors@R:
66
c(person(given = "OJ",
77
family = "Watson",
@@ -56,7 +56,7 @@ Suggests:
5656
data.table,
5757
microbenchmark
5858
License: MIT + file LICENSE
59-
RoxygenNote: 7.2.3
59+
RoxygenNote: 7.3.2
6060
VignetteBuilder: knitr
6161
Language: en-GB
6262
Encoding: UTF-8

‎NEWS.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# rdhs (development version)
22

3+
## rdhs 0.8.4
4+
5+
* New function `set_rdhs_client` to manually set internal client
6+
7+
## rdhs 0.8.3
8+
9+
* Fix to `check_available_datasets` in client for missing file name warning.
10+
311
## rdhs 0.8.2
412

513
* Spatial boundaries will be cached using the DHS client (#122)

‎R/config.R‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ set_rdhs_config <- function(email = NULL,
261261
invisible(config)
262262
}
263263

264+
#' @noRd
265+
set_rdhs_client <- function(client) {
266+
.rdhs$client <- client
267+
}
264268

265269
#' @noRd
266270
write_rdhs_config_file <- function(dat, path) {

‎man/rdhs.Rd‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)