-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '29-brms-style-stancode-method-for-readability' into main
Merge branch '29-brms-style-stancode-method-for-readability' # Conflicts: # NAMESPACE # tests/testthat/test-coev_fit.R
- Loading branch information
Showing
7 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#' Expose the Stan code of a fitted model represented by a \code{coevfit} object | ||
#' | ||
#' @param object An object of class \code{coevfit}. | ||
#' | ||
#' @return Printed Stan code | ||
#' @export | ||
stancode <- function(object){ | ||
UseMethod("stancode") | ||
} | ||
|
||
#' @export | ||
stancode.coevfit <- function(object){ | ||
cat(object$stan_code) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#' Expose the Stan data list for a fitted model represented by a \code{coevfit} | ||
#' object | ||
#' | ||
#' @param object An object of class \code{coevfit}. | ||
#' | ||
#' @return Named list of data for Stan | ||
#' @export | ||
standata <- function(object){ | ||
UseMethod("standata") | ||
} | ||
|
||
#' @export | ||
standata.coevfit <- function(object){ | ||
object$stan_data | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters