From ec26a1d4fea7a5911d7d86604d659f671059be01 Mon Sep 17 00:00:00 2001 From: Amanyiraho Date: Thu, 9 Feb 2023 07:06:00 +0300 Subject: [PATCH] spelling --- DESCRIPTION | 2 +- R/connect.R | 4 ++-- R/get_metadata.R | 2 +- man/Dhis2r.Rd | 4 ++-- man/dhis2r-package.Rd | 2 +- tests/testthat/test-connect.R | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index a945d7f..232b80b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 diff --git a/R/connect.R b/R/connect.R index f3fd206..bf6372c 100644 --- a/R/connect.R +++ b/R/connect.R @@ -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 @@ -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") #' diff --git a/R/get_metadata.R b/R/get_metadata.R index 0008ea8..d92c825 100644 --- a/R/get_metadata.R +++ b/R/get_metadata.R @@ -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 diff --git a/man/Dhis2r.Rd b/man/Dhis2r.Rd index e133140..862d57b 100644 --- a/man/Dhis2r.Rd +++ b/man/Dhis2r.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/connect.R \name{Dhis2r} \alias{Dhis2r} -\title{Connect and pull/get data from a Dhis2 instance} +\title{Connect and pull/get data from a DHIS2 instance} \format{ An R6 class called Dhis2r. } @@ -15,7 +15,7 @@ You can use a DHIS2 instance connection to get data several times without needin } \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") diff --git a/man/dhis2r-package.Rd b/man/dhis2r-package.Rd index 08c29a7..261ba8a 100644 --- a/man/dhis2r-package.Rd +++ b/man/dhis2r-package.Rd @@ -8,7 +8,7 @@ \description{ \if{html}{\figure{logo.png}{options: style='float: right' alt='logo' width='120'}} -Connet and pull data from a 'DHIS2 (District Health Information Software 2)' instance into R. +Connect and pull data from a 'DHIS2 (District Health Information Software 2)' instance into R. } \seealso{ Useful links: diff --git a/tests/testthat/test-connect.R b/tests/testthat/test-connect.R index 68ebe06..c750bb6 100644 --- a/tests/testthat/test-connect.R +++ b/tests/testthat/test-connect.R @@ -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"))