Skip to content

Commit

Permalink
Merge pull request #5 from amanyiraho/better-readme
Browse files Browse the repository at this point in the history
spelling
  • Loading branch information
amanyiraho authored Feb 9, 2023
2 parents 1eedc7c + ec26a1d commit ada9c24
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Authors@R: c(
person("Robinson", "Amanyiraho", , "amanyiraho@gmail.com", role = c("cre", "aut", "cph"),
comment = c(ORCID = "0000-0002-7747-1367"))
)
Description: Connet and pull data from a 'DHIS2 (District Health Information Software 2)' instance into R.
Description: Connect and pull data from a 'DHIS2 (District Health Information Software 2)' instance into R.
License: MIT + file LICENSE
URL: https://github.com/amanyiraho/dhis2r
BugReports: https://github.com/amanyiraho/dhis2r/issues
Expand Down
4 changes: 2 additions & 2 deletions R/connect.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Connect and pull/get data from a Dhis2 instance
#' Connect and pull/get data from a DHIS2 instance
#' @format An R6 class called Dhis2r.
#' @description
#' To create a DHIS2 connection, you need a DHIS2 base URL, username, password, and an API version
Expand All @@ -11,7 +11,7 @@
#'
#' @examples
#' \dontrun{
#' # connect to the dhis2 instance
#' # connect to the DHIS2 instance
#' dhis2_play_connection <- Dhis2r$new(base_url = "https://play.dhis2.org/",
#' username = "admin", password = "district",api_version = "2.39.0.1")
#'
Expand Down
2 changes: 1 addition & 1 deletion R/get_metadata.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' #'
#' #' @examples
#' #' \dontrun{
#' #' # connect to the dhis2 instance
#' #' # connect to the DHIS2 instance
#' #' dhis2_play_connection <- Dhis2r$new(base_url = "https://play.dhis2.org/", username = "admin", password = "district",api_version = "2.39.0.1", api_version_position = "before")
#' #'
#' #' # get all the available resources
Expand Down
4 changes: 2 additions & 2 deletions man/Dhis2r.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/dhis2r-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-connect.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test_that("Type of result of possible fields is a character vector", {

test_that('Analytics dataframe returned has columns "analytic", "org_unit", "period", "value" are return', {

expect_equal(names(dhis2_play_connection$get_analytics(analytic = c("FnYCr2EAzWS"),
expect_equal(names(dhis2_play_connection$get_analytics(analytic = c("s46m5MS0hxu"),
org_unit = c("O6uvpzGd5pu", "fdc6uOvgoji"),
period = "LAST_12_MONTHS",
output_scheme = "NAME")), c("analytic", "org_unit", "period", "value"))
Expand Down

0 comments on commit ada9c24

Please sign in to comment.