Skip to content

Commit

Permalink
use roxytypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sabanes Bove committed Aug 10, 2023
1 parent 67b2a0b commit 0701e38
Show file tree
Hide file tree
Showing 18 changed files with 4,169 additions and 3,950 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repos:
additional_dependencies:
- shiny
- checkmate
- openpharma/roxytypes
# codemeta must be above use-tidy-description when both are used
# id: codemeta-description-updated
- id: use-tidy-description
Expand Down
9 changes: 7 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,19 @@ Suggests:
reshape,
testthat
Imports:
checkmate
checkmate,
lifecycle
VignetteBuilder:
knitr
Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
Roxygen:
list(markdown = TRUE, packages = "roxytypes")
RoxygenNote: 7.2.3
Config/Needs/documentation:
roxytypes
Config/roxytypes: list(format = "({type}):\\cr {description}")
Collate:
'Phase1b-package.R'
'betadiff.R'
Expand Down
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ importFrom(graphics,par)
importFrom(graphics,plot)
importFrom(graphics,polygon)
importFrom(graphics,title)
importFrom(lifecycle,deprecated)
importFrom(stats,acf)
importFrom(stats,binom.test)
importFrom(stats,dbeta)
importFrom(stats,dbinom)
importFrom(stats,integrate)
importFrom(stats,optimize)
importFrom(stats,pbeta)
importFrom(stats,qlogis)
importFrom(stats,quantile)
importFrom(stats,rbeta)
importFrom(stats,rbinom)
Expand Down
3 changes: 3 additions & 0 deletions R/Phase1b-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
##'
##' @import checkmate
##' @importFrom graphics plot hist
##' @importFrom lifecycle deprecated
##' @importFrom stats acf
##'
##' @keywords package
NULL
14 changes: 9 additions & 5 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,20 @@ is.probRange <- function(x,
}


##' The logit function
##' The Logit Function
##'
##' @param x vector of probabilities
##' @return logit(x) calculates logit(x)=log(x/(1-x))
##' @description `r lifecycle::badge("experimental")`
##'
##' @importFrom stats qlogis
##' This just calculates the logit.
##'
##' @typed x: numeric
##' probabilities to transform.
##' @return The logit of `x`.
##'
##' @example examples/logit.R
##' @export
##' @keywords programming
logit <- function(x) {
assert_numeric(x)

stats::qlogis(x)
}
Loading

0 comments on commit 0701e38

Please sign in to comment.