epiverse-trace / finalsize

R package to calculate the final size of an SIR epidemic in populations with heterogeneity in social contacts and disease susceptibility
https://epiverse-trace.github.io/finalsize/
Other
11 stars 7 forks source link

Fix Reff LaTeX formatting #179

Closed Bisaloo closed 8 months ago

Bisaloo commented 8 months ago

This fixes the LaTeX / mathjax formatting of Reff.

https://epiverse-trace.github.io/finalsize/reference/r_eff.html

image

github-actions[bot] commented 8 months ago

This pull request:

(cc @Bisaloo for workflow monitoring)

pratikunterwegs commented 8 months ago

Thanks @Bisaloo, please feel free to rebase and merge as convenient. Locally, I was able to resolve the linter warning by moving instances of 1e-6 to the line above.

"Error: contact matrix must have a maximum real eigenvalue of 1.0" =
      abs(max(Re(eigen(
        contact_matrix * demography_vector,
        only.values = TRUE
      )$values) - 1.0)) < 1e-6
github-actions[bot] commented 8 months ago

This pull request:

(cc @Bisaloo for workflow monitoring)