An R package that showcases the the Decision Analysis in R for Technologies in Health (DARTH) coding framework to construct model-based cost-effectiveness analysis in R. This package is part of the following working paper submitted for publication:
- Alarid-Escudero F, Krijkamp E, Pechlivanoglou P, Jalal H, Kao SY, Yang A, Enns EA. "A need for change! A coding framework for improving transparency in decision modeling". (2019) Under revision
- Install Rstudio
- Install devtools
# Install release version from CRAN
install.packages("devtools")
# Install development version from GitHub
devtools::install_github("r-lib/devtools")'darthpack' repository could be used in at least three different ways:
The main website of the package could be found in: https://darth-git.github.io/darthpack/
- Sign in to GitHub. You need to sign in to use this repository as a template.
- On the
darthpackGitHub repository, navigate to the main page of the repository (https://github.com/DARTH-git/darthpack). - Above the file list, click Use this template.
- Use the Owner drop-down menu, and select the account you want to own the repository.
- Type a name for your repository of your decision model, and an optional description.
- Choose to make the repository either public or private. Public repositories are visible to the public, while private repositories are only accessible to you, and people you share them with. For more information, see "Setting repository visibility."
- Click Create repository from template.
- Either download the repository or clone it.
- Open the RStudio project
darthpack.Rproj. - In RStudio, load all the functions from the repository by typing
devtools::load_all(".") - Run all the decision modeling modules in the analysis folder.
- On the
darthpackGitHub repository, navigate to the main page of the repository (https://github.com/DARTH-git/darthpack). - Above the file list, click Clone or download and select either
- Open in desktop, which requires the user to have a GitHub desktop installed, or
- Download zip that will ask the user to download the whole repository as a .zip file.
- Open the RStudio project
darthpack.Rproj. - In RStudio, load all the functions from the repository by typing
devtools::load_all(".") - Run all the decision modeling modules in the analysis folder.
- Install the development version of 'darthpack' from GitHub with:
devtools::install_github("DARTH-git/darthpack")- Load all the functions from the repository by typing
library(darthpack)Once the framework has been modified and updated to your specific needs, run pkgdown from the package directory each time you release your package:
pkgdown::build_site()For a more detailed description on how to quickly and easily build a website for your package, please go to https://github.com/r-lib/pkgdown
