README.md

DOI

inAccessMod

AccessMod is a World Health Organization-recognized, free and open source software tool that allows users to model the geographic accessibility of health services. To model the geographic accessibility of health services, several layers of input data reflecting barriers and facilitators to the mobility of the target population are required in conjunction with data on the location and availability of health services. More information on AccessMod installation and use can be found here: https://www.accessmod.org/

inAccessMod is a R package that allows the user to easily download and prepare all the required layers for AccessMod. A proper folder structure is created in order to manage multi-temporal data and/or multiple analysis scenarios. While the functions to process health facility tables are specifically designed to handle data from The Health Resources and Services Availability Monitoring System (HeRAMS), the other ones can be used for any other project. The layer downloading, cropping, masking, resampling, exporting processes are automated to a large degree, making the preparation of the inputs quick and straightforward.

How to cite: Timoner, P., Hierink, F., Baecher, L., Fuhrer, C. and Ray, N. (2024). inAccessMod: An R package to automate data downloading and processing for AccessMod. Journal of Open Source Software, 9(93), 5879, https://doi.org/10.21105/joss.05879

Installation

This package requires R version 4.1.3 or later. It also requires the following packages: crsuggest, data.table, dplyr, exactextractr, fasterize, fs, geodata, jsonlite, lubridate, osmextract, purrr, raster, RCurl, readxl, rgeoboundaries (version 0.0.0.9000 or later), rmarkdown, sf, stringi, stringr, testthat, tibble, utils, and writexl. These dependencies should be installed automatically when dependencies = TRUE is set in the command used to install the package.

if (!require("devtools")) install.packages("devtools")
devtools::install_github("unige-geohealth/inAccessMod", build_vignettes = TRUE, dependencies = TRUE)

If you decide to install the dependencies manually, please note that rgeoboundaries must be installed using remotes or devtools:

devtools::install_github("wmgeolab/rgeoboundaries")

Main functions

Tutorial

You can access the tutorial directly in R using the following command, or by opening the TUTORIAL file located in the main directory of the repository. Remember that you must have a working internet connection in order to access all the functions that allow you to download data.

vignette("Tutorial", package = "inAccessMod") 

Automated tests

After cloning the repository, go to the package main directory and run:

devtools::test()

Contributor guidelines

Contributions are welcome and greatly appreciated! To contribute, please follow the following guidelines:

Reporting issues

Development process

Where to get help



ptimoner/inAccMod documentation built on Jan. 27, 2025, 9:34 a.m.