-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rmd code snippets #1
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Text colour:
Higher/Lower:
make_RMDpercdiff <- function(a, b, round_digits){
}
make_RMD_higher_lower <- function(a, b){
}
run tests:
testthat::expect_equal(object = make_RMD_higher_lower(5,5),
expected = "the same as")
for(i in runif(n = 100, min = 5.1,max = 1e+7)){
testthat::expect_equal(object = make_RMD_higher_lower(i,5),
expected = paste0(abs(i - 5)," higher than"))
}
for(i in runif(n = 100,min = -1e+8,max = 4.99)){
testthat::expect_equal(object = make_RMD_higher_lower(i,5),
expected = paste0(abs(i - 5)," lower than"))
}
References
@Article{smith2020making,
title={Making health economic models Shiny: A tutorial},
author={Smith, Robert and Schneider, Paul},
journal={Wellcome Open Research},
volume={5},
year={2020},
publisher={The Wellcome Trust}
}
Setting counter again for Appendices
\setcounter{figure}{0}
\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{table}{0}
\renewcommand{\thetable}{A\arabic{table}}
1st page title Logo
title: |
{width=1in}
\textcolor{primary}{Example of an RMarkdown document for Company automated reporting}
The text was updated successfully, but these errors were encountered: