Skip to content

Commit

Permalink
Merge branch 'feature/fix_no_crayon' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dmphillippo committed Mar 11, 2024
2 parents 964fc5b + aab2bf0 commit dba35ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: multinma
Title: Bayesian Network Meta-Analysis of Individual and Aggregate Data
Version: 0.6.1.9000
Version: 0.6.1.9001
Authors@R:
person(given = c("David", "M."),
family = "Phillippo",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# multinma 0.6.1.9000

* Fix: Fallback formatting used by print methods when the crayon package is not
installed now works properly, rather than giving errors.

# multinma 0.6.1

* Fix: Piecewise exponential hazard models no longer give errors during set-up.
Expand Down
8 changes: 4 additions & 4 deletions R/nma_data-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -213,25 +213,25 @@ subtle <- function(...) {
if (require_pkg("crayon", error = FALSE))
return(crayon::silver(...))
else
return(...)
return(paste0(...))
}
bold <- function(...) {
if (require_pkg("crayon", error = FALSE))
return(crayon::bold(...))
else
return(...)
return(paste0(...))
}
red <- function(...) {
if (require_pkg("crayon", error = FALSE))
return(crayon::red(...))
else
return(...)
return(paste0(...))
}
green <- function(...) {
if (require_pkg("crayon", error = FALSE))
return(crayon::green(...))
else
return(...)
return(paste0(...))
}

#' Convert networks to graph objects
Expand Down

0 comments on commit dba35ad

Please sign in to comment.