Skip to content
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

Parameter and output documentation. #299

Merged
merged 30 commits into from May 24, 2024
Merged

Conversation

RJSheppard
Copy link
Contributor

There are a few parameter documentation things I think it would be good to tidy up. First, n_severe isn't a prevalence output (model.R). I've then reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation. Nothing has fundamentally changed, just the order, and some small text things to improve clarity, e.g., "probability of detection by light-microscopy when asymptomatic".

…on't think it needs to be multiplied by psi. When these values are drawn in lines 135-140 of biting_process.R they get multiplied by psi in line 144. That means we're effectively multiplying these values by psi^2. I think we can correct this by adjusting the calculation thusly.

The two tests at the end would then need adjusting (one way or another) to reflect this change - which could use improving.
… to rendering tests to reflect additional outputs.
…od to tidy up. First, n_severe isn't a prevalence output (model.R). I've reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation.
@RJSheppard RJSheppard force-pushed the parameter_documentation_ordering branch from bcbafc2 to 6ec5e3d Compare May 8, 2024 15:39
R/parameters.R Outdated
#' please set vaccine strategies with the convenience functions in
#' `pev_parameters.R:set_pev_epi`
#' `pev_parameters.R:set_mass_pev`
#' `pev_parameters.R::set_pev_epi`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a thing?

If we're going to make these references more formal shouldn't we use Roxygen syntax?

Suggested change
#' `pev_parameters.R::set_pev_epi`
#' \code{\link{set_pev_epi}}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good shout! I'm not super familiar with the syntax, so thanks for pointing this out. I've now changed all the references to other functions to links to the help pages.

Copy link
Contributor

@pwinskill pwinskill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Richard

Looks like a few of the new links in the docs are upsetting the checks:

❯ checking Rd cross-references ... WARNING
  Missing link or links in Rd file 'get_parameters.Rd':
    'set_betnets' 'set_epi_outputs'
  
  See section 'Cross-references' in the 'Writing R Extensions' manual.

Otherwise looks great

@RJSheppard
Copy link
Contributor Author

I've corrected the set_bednets function spelling, but I think I'll leave the epi outputs in, then merge this one after we merge that branch.

RJSheppard and others added 16 commits May 20, 2024 15:20
dqrng just released a new version, which means we can stop relying on
the mrc-ide r-universe as an additional repository.
Depend on dqrng from CRAN again.
… to rendering tests to reflect additional outputs.
…od to tidy up. First, n_severe isn't a prevalence output (model.R). I've reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation.
RJSheppard and others added 2 commits May 22, 2024 11:21
This PR labels detection outputs explicitly as pcr or lm detectable.
…od to tidy up. First, n_severe isn't a prevalence output (model.R). I've reorganised the parameter documentation list into an order I think is a bit more intuitive, with consistency between code and documentation.
@RJSheppard RJSheppard merged commit 98a7482 into dev May 24, 2024
4 checks passed
@RJSheppard RJSheppard deleted the parameter_documentation_ordering branch May 24, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants