Skip to content

Commit

Permalink
Merge pull request #4 from amanyiraho/better-readme
Browse files Browse the repository at this point in the history
cran ready
  • Loading branch information
amanyiraho authored Feb 8, 2023
2 parents 6f2f036 + be060bd commit 1eedc7c
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 89 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
^\.covrignore$
^doc$
^Meta$
^cran-comments\.md$
^revdep$
18 changes: 9 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
Package: dhis2r
Title: R client for the DHIS2 web API
Title: R Client for the 'DHIS2' Web API
Version: 0.1.0
Authors@R: c(
person("Robinson", "Amanyiraho", , "[email protected]", role = c("cre", "aut"),
person("Robinson", "Amanyiraho", , "[email protected]", role = c("cre", "aut", "cph"),
comment = c(ORCID = "0000-0002-7747-1367"))
)
Description: Pull data from a DHIS2 instance into R.
Description: Connet 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
Imports:
attempt,
curl,
dplyr,
httr2,
R6
attempt (>= 0.3.1),
curl (>= 4.3.3),
dplyr (>= 1.0.10),
httr2 (>= 0.2.2),
R6 (>= 2.5.1)
Suggests:
covr,
knitr,
rmarkdown,
testthat
Depends: R (>= 2.10)
Depends: R (>= 4.1.0)
Encoding: UTF-8
VignetteBuilder: knitr
RoxygenNote: 7.2.3
1 change: 0 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ output: github_document
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
cache = T,
fig.path = "man/figures/README-",
out.width = "100%"
)
Expand Down
4 changes: 0 additions & 4 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
url: http://www.amanyiraho.com/dhis2r/
template:
bootstrap: 5
authors:
AFENET:
html: <img src='man/figures/afenet-logo.png' width='130' alt='AFENET'/>
href: https://www.afenet.net/
5 changes: 5 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## R CMD check results
There were no ERRORs, WARNINGs or NOTEs

## Downstream dependencies
There are currently no downstream dependencies for this package
22 changes: 8 additions & 14 deletions data-raw/package_setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ my_desc$set("Package", "dhis2r")

#Set your name
my_desc$set("Authors@R", "c( person('Robinson', 'Amanyiraho', email = '[email protected]',
role = c('cre', 'aut'), comment = c(ORCID = '0000-0002-7747-1367')),
person('AFENET', role = c('cph')),
person('CDC', role = c('fnd')))")
role = c('cre', 'aut', 'cph'), comment = c(ORCID = '0000-0002-7747-1367')))")

# Remove some author fields
my_desc$del("Maintainer")
Expand All @@ -25,9 +23,9 @@ my_desc$del("Maintainer")
my_desc$set_version("0.1.0")

# The title of your package
my_desc$set(Title = "R client for the DHIS2 web API")
my_desc$set(Title = "R Client for the 'DHIS2' Web API")
# The description of your package
my_desc$set(Description = "Pull data from a DHIS2 instance into R.")
my_desc$set(Description = "Connet and pull data from a 'DHIS2 (District Health Information Software)' instance into R.")
# The urls
my_desc$set("URL", "https://github.com/amanyiraho/dhis2r")
my_desc$set("BugReports", "https://github.com/amanyiraho/dhis2r/issues")
Expand All @@ -41,13 +39,13 @@ use_lifecycle_badge("stable")
use_news_md()

# Get the dependencies
use_package("httr2")
use_package("httr2", min_version = TRUE)
#use_package("jsonlite")
use_package("attempt")
use_package("R6")
use_package("attempt", min_version = TRUE)
use_package("R6", min_version = TRUE)
#use_package("purrr")
use_package("curl")
use_package("dplyr")
use_package("curl", min_version = TRUE)
use_package("dplyr", min_version = TRUE)

#Suggestion
use_package("testthat",type = "Suggests")
Expand All @@ -56,10 +54,6 @@ use_package("knitr",type = "Suggests")
use_package("rmarkdown",type = "Suggests")


#



# Clean your description
use_tidy_description()

Expand Down
12 changes: 3 additions & 9 deletions man/dhis2r-package.Rd

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

7 changes: 7 additions & 0 deletions revdep/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
checks
library
checks.noindex
library.noindex
cloud.noindex
data.sqlite
*.html
5 changes: 5 additions & 0 deletions revdep/email.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
release_date: ???
rel_release_date: ???
my_news_url: ???
release_version: ???
release_details: ???
32 changes: 0 additions & 32 deletions tests/testthat/test-get_metadata.R

This file was deleted.

20 changes: 0 additions & 20 deletions tests/testthat/test-get_user_info.R

This file was deleted.

0 comments on commit 1eedc7c

Please sign in to comment.