Skip to content

Commit

Permalink
covr exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
chjackson committed Aug 24, 2023
1 parent 4b47a04 commit c91bf5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ survreg_wrap <- function(args){
do.call(survreg, args)
}

## covr doesn't detect when these are used, as they are manipulated dynamically

# nocov start
sr.weib.inits <- function(t,aux){
if (aux$counting){
lt <- log(t[t>0])
Expand Down Expand Up @@ -77,6 +80,7 @@ sr.llog.inits <- function(t,aux){
sr2fsllog(sr)
}
}
# nocov end

## Convert parameters of survreg models to flexsurvreg
## parameterisation, for use as initial values
Expand Down

0 comments on commit c91bf5f

Please sign in to comment.