Skip to content

Commit

Permalink
Keep old_prior as first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Oct 15, 2024
1 parent 9d981d4 commit 2ae7976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
#' is a prior distribution in `prior` with no match in `old_prior` then this
#' function can optionally give a warning.
#'
#' @param prior One or more prior distributions in the class `brmsprior`
#' @param old_prior One or more prior distributions in the class `brmsprior`
#' @param prior One or more prior distributions in the class `brmsprior`
#' @param warn If `TRUE` then a warning will be displayed if a `new_prior` is
#' provided for which there is no matching `old_prior`. Defaults to `FALSE`
#' @autoglobal
#' @keywords internal
.replace_prior <- function(prior, old_prior, warn = FALSE) {
.replace_prior <- function(old_prior, prior, warn = FALSE) {
if (is.null(prior)) {
return(old_prior)
}
Expand Down
6 changes: 3 additions & 3 deletions man/dot-replace_prior.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ae7976

Please sign in to comment.