MyNixOS website logo
Description

Report Templates and Helper Functions for Applied Epidemiology.

A meta-package that loads the complete sitrep ecosystem for applied epidemiology analysis. This package provides report templates and automatically loads companion packages, including 'epitabulate' (for epidemiological tables), 'epidict' (for data dictionaries), 'epikit' (for epidemiological utilities), and 'apyramid' (for age-sex pyramids). Simply load 'sitrep' to access all functions from the ecosystem.

Sitrep

Lifecycle:maturing CRANstatus R-CMD-check Codecov testcoverage

The goal of {sitrep} is provide report templates for common epidemiological surveys and outbreak reports. The package further contains helper function that standardize certain analyses.

While templates are primarily for Medecins Sans Frontieres analyses - they have been setup to be as generic as possible for use by the general applied epidemiology community.

Detailed information about the project, the templates and functions in {sitrep} can be found at https://r4epi.github.io/sitrep/.

{sitrep} includes a number of other R packages which facilitate specific analysis:
{epitabulate}: Tables for epidemiological analysis
{epidict}: Epidemiology data dictionaries and random data generators
{epikit}: Miscellaneous helper tools for epidemiologists
{apyramid}: Age pyramid construction and plotting

Installation

You can install {sitrep} from CRAN:

install.packages("sitrep")

Click here for alternative installation options

You can also install the in-development version from GitHub using the {remotes} package (but there’s no guarantee that it will be stable):

# install.packages("remotes")
remotes::install_github("R4EPI/sitrep") 
 
## Available templates

Sitrep has outbreak templates and survey templates available. These templates 
will generate the following:

1. A word document with the situation report
2. A plain text markdown document (for conversion to other formats such as HTML or PDF)
3. A directory with all of the figures produced

You can access the list of templates in *R Studio* by clicking (see example below): 
file > New file > R Markdown... > From Template

You can generate an example template by using the `check_sitrep_templates()`
function:


``` r
library("sitrep")
output_dir <- file.path(tempdir(), "sitrep_example")
dir.create(output_dir)

# view the available templates, categorized by type
available_sitrep_templates(categorise = TRUE)
#> $outbreak
#>  [1] "ajs_intersectional_outbreak"        "ajs_outbreak"                      
#>  [3] "ajs_outbreak_recode"                "cholera_intersectional_outbreak"   
#>  [5] "cholera_outbreak"                   "cholera_outbreak_recode"           
#>  [7] "diphtheria_intersectional_outbreak" "intersectional_outbreak_recode"    
#>  [9] "measles_intersectional_outbreak"    "measles_outbreak"                  
#> [11] "measles_outbreak_recode"            "meningitis_intersectional_outbreak"
#> [13] "meningitis_outbreak"                "meningitis_outbreak_recode"        
#> 
#> $survey
#> [1] "ebs"                      "mortality"               
#> [3] "mortality_recode"         "nutrition"               
#> [5] "nutrition_recode"         "vaccination_long"        
#> [7] "vaccination_long_recode"  "vaccination_short"       
#> [9] "vaccination_short_recode"

# generate the measles outbreak template in the output directory
check_sitrep_templates("measles_outbreak", path = output_dir)
#> [1] "C:\\Users\\spina\\AppData\\Local\\Temp\\RtmpMfBkNj/sitrep_example"

# view the contents
list.files(output_dir, recursive = TRUE)
#> [1] "measles_outbreak.Rmd"
Metadata

Version

0.4.1

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows