Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bb2ad7b
fixed DESCRIPTION issues from devtools::check()
dcolombara Feb 10, 2025
c5a6606
Fix typo in README
dcolombara Feb 10, 2025
3987d66
namespace qualification, importFrom & remove .()
dcolombara Feb 10, 2025
5bee92a
Declare global variable for devtools::check()
dcolombara Feb 10, 2025
a45ac75
Commented out test for chi_generate_trend_years
dcolombara Feb 10, 2025
a76d60a
Fixes for chi_generate_tro_shell test failure
dcolombara Feb 10, 2025
c489503
Refactor funct. rm global environment assignments
dcolombara Feb 10, 2025
4f54e6c
FIX #6 Plus other improvements in chi_qa_tro
dcolombara Feb 11, 2025
a9ab109
roxygen2 headers to functions without them
dcolombara Feb 11, 2025
a0e7c38
replace sql_clean with string_clean
dcolombara Feb 11, 2025
9efdf11
update / improve roxygen2 headers
dcolombara Feb 11, 2025
ec18afc
Fix #6
dcolombara Feb 11, 2025
6260baf
sorted global variables and added 'year'
dcolombara Feb 11, 2025
f7ecc78
update DESCRIPTION & documentation
dcolombara Feb 11, 2025
61021f8
Drop columns from CHI standards
dcolombara Feb 18, 2025
d1d4164
chi_calc BUG FIX & improvements
dcolombara Feb 19, 2025
739b50f
Updated chi_qa_tro
dcolombara Feb 19, 2025
1b4c694
Added more global sto globals.R
dcolombara Feb 19, 2025
dc64517
BUG FIX chi_sql_update + improvements
dcolombara Feb 19, 2025
9d6f049
Improve chi_generate_metadata
dcolombara Feb 19, 2025
2f832fd
chi_generate_tro_shell header improvement
dcolombara Feb 19, 2025
8317045
tidied header for chi_process_nontrends
dcolombara Feb 19, 2025
f22e910
tidied header for chi_process_trends
dcolombara Feb 19, 2025
5d3575a
Created chi_generate_analysis_set
dcolombara Feb 19, 2025
29e9c23
Created chi_compare_estimates
dcolombara Feb 19, 2025
7ec60c5
Added a bunch of new tests & edited old ones
dcolombara Feb 19, 2025
f5bf0c8
updated DESCRIPTION & NAMESPACE
dcolombara Feb 19, 2025
67f9ce7
Rename proto_chi_calc >> chi_calc
dcolombara Feb 21, 2025
eaf38d2
Initial vignette for Prevalence/Proportion
dcolombara Feb 21, 2025
6fbc375
updated prevalence vignette QA code block
dcolombara Feb 21, 2025
ba67303
updated warnings in chi_sql_updates
dcolombara Feb 21, 2025
4b4a9a8
updated chi_qa_tro
dcolombara Feb 21, 2025
a9d78c5
helpfile direction to underlying file updated
dcolombara Feb 21, 2025
f01980a
removed quarto version specification from DESC
dcolombara Feb 21, 2025
9cbbbd0
Update chi_calc to take `ci` argument
dcolombara Feb 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
^\.Rproj\.user$
^ronNotes\.qmd$
^LICENSE\.md$
^quarto_docs$
38 changes: 19 additions & 19 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ Version: 0.0.1
Authors@R: person(
"Ronald","Buie",
email = "rbuie@kingcounty.gov",
role = c("auth", "cre"))
Description: This package is for use by epidemiologists within Public Health Seattle
and King County, and aligns to analytics guidelines and practices for Community
role = c("aut", "cre"))
Description: This package provides tools for epidemiologists within Public Health Seattle
and King County. It aligns with analytics guidelines and practices for Community
Health Indicators (CHI) as reported by the Assessment, Policy Development, and
Evaluation Unit. The major activities assisted by this packages are
Simplifying the execution of identical CHI analyses across multiple variables
Creating CHI Tableau ready output of the analysis
Performing quality assurance regarding data structure and formatting
Pushing and pulling data to APDE servers
Evaluation Unit. The package simplifies the execution of identical CHI analyses
across multiple variables, creates CHI Tableau-ready output of the analysis,
performs quality assurance regarding data structure and formatting, and
facilitates pushing and pulling data to APDE servers.
URL: https://github.com/PHSKC-APDE/apde.chi.tools
BugReports: https://github.com/PHSKC-APDE/apde.chi.tools/issues
License: MIT + file LICENSE
Expand All @@ -23,28 +22,29 @@ Imports:
data.table (>= 1.14.2),
DBI (>= 1.1.0),
dtsurvey (>= 0.0.2.0),
future,
future.apply,
glue (>= 1.6.1),
keyring (>= 1.2.0),
lubridate (>= 1.6.0),
methods,
odbc (>= 1.2.2),
rads.data (>= 1.0.7.5),
progressr,
rads,
rads.data,
stats,
utf8 (>= 1.1.4),
yaml (>= 2.2.1),
utils
tidyr,
yaml (>= 2.2.1)
Remotes:
github::PHSKC-APDE/rads.data, github::PHSKC-APDE/dtsurvey, github::PHSKC-APDE/apde.chi.tools
github::PHSKC-APDE/rads, github::PHSKC-APDE/dtsurvey
Suggests:
httr,
knitr,
progress,
rmarkdown,
markdown,
quarto,
testthat (>= 3.0.0),
srvyr,
survey (>= 4.0)
VignetteBuilder: knitr
Depends:
R (>= 3.1)
R (>= 4.1)
Config/testthat/edition: 3
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
52 changes: 44 additions & 8 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,27 +1,63 @@
# Generated by roxygen2: do not edit by hand

export(chi_calc)
export(chi_compare_estimates)
export(chi_count_by_age)
export(chi_drop_illogical_ages)
export(chi_generate_analysis_set)
export(chi_generate_instructions_pop)
export(chi_generate_metadata)
export(chi_generate_tro_shell)
export(chi_get_cols)
export(chi_get_yaml)
export(chi_qa_tro)
export(chi_sql_update)
import(data.table)
import(dtsurvey)
import(future)
import(future.apply)
import(progressr)
importFrom(DBI,Id)
importFrom(DBI,dbConnect)
importFrom(DBI,dbDisconnect)
importFrom(DBI,dbExistsTable)
importFrom(DBI,dbGetQuery)
importFrom(DBI,dbWriteTable)
importFrom(data.table,"%between%")
importFrom(data.table,':=')
importFrom(data.table,":=")
importFrom(data.table,.GRP)
importFrom(data.table,.SD)
importFrom(data.table,`:=`)
importFrom(data.table,between)
importFrom(data.table,copy)
importFrom(data.table,data.table)
importFrom(data.table,dcast)
importFrom(data.table,fread)
importFrom(data.table,fcase)
importFrom(data.table,fifelse)
importFrom(data.table,fsetdiff)
importFrom(data.table,is.data.table)
importFrom(data.table,setDF)
importFrom(data.table,rbindlist)
importFrom(data.table,set)
importFrom(data.table,setDT)
importFrom(data.table,setcolorder)
importFrom(data.table,setnames)
importFrom(data.table,setorder)
importFrom(data.table,shift)
importFrom(data.table,setorderv)
importFrom(data.table,tstrsplit)
importFrom(data.table,uniqueN)
importFrom(future.apply,future_lapply)
importFrom(glue,glue)
importFrom(rads,chi_qa)
importFrom(utils,write.table)
importFrom(glue,glue_sql)
importFrom(odbc,odbc)
importFrom(rads,calc)
importFrom(rads,chi_cols)
importFrom(rads,compare_estimate)
importFrom(rads,round2)
importFrom(rads,string_clean)
importFrom(rads,substrRight)
importFrom(rads,suppress)
importFrom(rads,tsql_validate_field_types)
importFrom(stats,na.omit)
importFrom(tidyr,crossing)
importFrom(tools,toTitleCase)
importFrom(utils,tail)
importFrom(yaml,read_yaml)
importFrom(yaml,yaml.load)
Loading