The heRomod package allows users to develop and run cost-effectiveness models in R and is the calculation engine used in the heRo web-based modeling platform. A fork of the HEEMOD package.
You can install the latest released version from github with:
If you want to run the package locally from source
brew install r
brew install libgit2 harfbuzz fribidi freetype2 libpng libtiff libjpeg pandoc
Open an R terminal executing r
in your terminal
r
is a built-in command to re-run the last command.which r
.r: shell built-in command
you will need to alias it.whereis r
rc
file (.bashrc
, .zshrc
or the one you use it) and add:
alias r='<your-path-to-r>'
.alias r='/opt/homebrew/bin/r'
Run the following into your R terminal:
r
install.packages("remotes")
install.packages("languageserver")
install.packages("usethis")
install.packages("pkgdown")
install.packages("devtools")
remotes::install_github("PolicyAnalysisInc/herotools")
remotes::install_github("PolicyAnalysisInc/herosurv")
Install the R extension for VS Code from the VS Code Extension Marketplace
Test the build command
devtools::install(dependencies=F)
devtools::build(vignettes=T)
devtools::test()
Install the Github package manager and Hero remotes
r
if(!require(remotes)) {
install.packages('remotes')
}
Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS" = "true")
remotes::install_github("PolicyAnalysisInc/herotools")
remotes::install_github("PolicyAnalysisInc/herosurv")
Install heromod (if prompted you can install "All")
r
remotes::install_github("PolicyAnalysisInc/heRomod")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.