Skip to content

Commit

Permalink
update readme and fix typos in IYCF descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrahamAz committed Oct 22, 2024
1 parent 137ed2e commit eff02db
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
19 changes: 16 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ knitr::opts_chunk$set(echo = TRUE)
# impactR4PHU <a href='https://www.impact-initiatives.org'><img src='man/figures/impactR4PHU.png' align="right" height="138" /></a>



<!-- badges: start -->
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)
[![R-CMD-check](https://github.com/impact-initiatives/impactR4PHU/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/impact-initiatives/impactR4PHU/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/impact-initiatives/impactR4PHU/graph/badge.svg?token=BG57ECHOYX)](https://codecov.io/gh/impact-initiatives/impactR4PHU)
<!-- badges: end -->

## Overview
`impactR4PHU` is designed for creating quality check reports, cleaning, analysing and outputing results of core outcome indicators of Public Health Unit. This package will target mainly Food Security and Livelihoods, WASH, Nutrition and Health Sectors.

`impactR4PHU` is designed for creating quality check reports, cleaning, analysing and outputing results of core outcome indicators of Public Health Unit. This package will target mainly Food Security and Livelihoods, WASH, Nutrition and Health Sectors.

## Table of Contents

- [Installation](#installation)
- R Tools Version
- Package Installation
- [Projects](#projects)
- [Data Quality](#data-quality)
- Execution
Expand Down Expand Up @@ -63,6 +64,12 @@ knitr::opts_chunk$set(echo = TRUE)

## Installation

### R Tools Version

The projects inside this package all requires a minimum R 4.4.0 Version. So, please make sure to update your R to the latest version from this [link](https://cran.r-project.org/bin/windows/base/).

### Package Installation

You can install the development version from [GitHub](https://github.com/) with:

``` {r, eval=FALSE}
Expand All @@ -73,7 +80,7 @@ devtools::install_github("impact-initiatives/impactR4PHU")

## Projects

Upon installing the impactR4PHU package, you will be able to access pre-coded projects related to the various sectors of Public Health. These projects aims to support country missions and the research department to check/clean/and analyse indicatores related to Public Health sectors.
Upon installing the impactR4PHU package, you will be able to access pre-coded projects related to the various sectors of Public Health. These projects aims to support country missions and the research department to check/clean/and analyse indicators related to Public Health sectors.

To access these projects, follow the following instructions.

Expand Down Expand Up @@ -1245,6 +1252,12 @@ This error usually appears during the installation of packages the first time yo

If the above error appears while running the mortality quality report or descriptive analysis projects, this means that you have a possible issue between the birth dates and the death dates in the death loop. Most probably, one of the death have a recorded birth date after the recorded death date. Make sure to fix the dates before running the scripts.

### GitHub Error

![](./man/figures/GitHub_Issue.png)

If the above error appears while running the PH integrated Tables projects, this means that you or other people have reached the maximum amount of downloads for a specific package (humind here) from GitHub. To fix the issue, you need to wait until the Rate Limit Reset Time is reached as shown in the picture.

If any other error is hindering you to run the whole script, or any other semantic issues (output do not make any sense), please contact Abraham Azar ([email protected]) or the PHU team ([email protected]) with the error/issue.

## Standalone Functions (for both Analysis or Quality checks)
Expand Down
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Livelihoods, WASH, Nutrition and Health Sectors.
## Table of Contents

- [Installation](#installation)
- R Tools Version
- Package Installation
- [Projects](#projects)
- [Data Quality](#data-quality)
- Execution
Expand Down Expand Up @@ -60,6 +62,14 @@ Livelihoods, WASH, Nutrition and Health Sectors.

## Installation

### R Tools Version

The projects inside this package all requires a minimum R 4.4.0 Version.
So, please make sure to update your R to the latest version from this
[link](https://cran.r-project.org/bin/windows/base/).

### Package Installation

You can install the development version from
[GitHub](https://github.com/) with:

Expand All @@ -73,7 +83,7 @@ devtools::install_github("impact-initiatives/impactR4PHU")
Upon installing the impactR4PHU package, you will be able to access
pre-coded projects related to the various sectors of Public Health.
These projects aims to support country missions and the research
department to check/clean/and analyse indicatores related to Public
department to check/clean/and analyse indicators related to Public
Health sectors.

To access these projects, follow the following instructions.
Expand Down Expand Up @@ -1838,6 +1848,16 @@ between the birth dates and the death dates in the death loop. Most
probably, one of the death have a recorded birth date after the recorded
death date. Make sure to fix the dates before running the scripts.

### GitHub Error

![](./man/figures/GitHub_Issue.png)

If the above error appears while running the PH integrated Tables
projects, this means that you or other people have reached the maximum
amount of downloads for a specific package (humind here) from GitHub. To
fix the issue, you need to wait until the Rate Limit Reset Time is
reached as shown in the picture.

If any other error is hindering you to run the whole script, or any
other semantic issues (output do not make any sense), please contact
Abraham Azar (<[email protected]>) or the PHU team
Expand Down
8 changes: 4 additions & 4 deletions inst/iycf_descriptive_analysis/src/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ cat("\n> ...Done.\n")

cat("\n> Creating a DAF...\n")

fsl_daf_variable <- tcltk::tk_select.list(tool.survey %>%
iycf_daf_variable <- tcltk::tk_select.list(tool.survey %>%
filter(q.type %in% c("decimal","integer",
"select_one","select_multiple")) %>%
pull(name),
title = "FSL variables (not FCS/HHS/LCSI/rCSI/HDDS",
title = "IYCF variables",
multiple = T)

daf <- data.frame(variable = fsl_daf_variable) %>%
dplyr::mutate(section = "FSL_Part1",
daf <- data.frame(variable = iycf_daf_variable) %>%
dplyr::mutate(section = "IYCF_Part1",
label = get.label(variable))


Expand Down
Binary file added man/figures/GitHub_Issue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eff02db

Please sign in to comment.