-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add snapshot test for replacing prior error * Lint changes
- Loading branch information
Showing
2 changed files
with
61 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# .replace_prior errors when passed a new prior without a match in old_prior [plain] | ||
|
||
Code | ||
.replace_prior(old_prior, new_prior, warn = TRUE) | ||
Condition | ||
Warning: | ||
! One or more priors have no match in existing parameters: | ||
Intercept_shape ~ normal(0, 5) | ||
i To remove this warning consider changing prior specification. | ||
Output | ||
prior class coef group resp dpar nlpar lb ub source | ||
normal(0, 5) Intercept <NA> <NA> user | ||
normal(0, 5) Intercept sigma <NA> <NA> user | ||
|
||
# .replace_prior errors when passed a new prior without a match in old_prior [ansi] | ||
|
||
Code | ||
.replace_prior(old_prior, new_prior, warn = TRUE) | ||
Condition | ||
[1m[33mWarning[39m:[22m | ||
[1m[22m[33m![39m One or more priors have no match in existing parameters: | ||
Intercept_shape ~ normal(0, 5) | ||
[36mi[39m To remove this warning consider changing prior specification. | ||
Output | ||
prior class coef group resp dpar nlpar lb ub source | ||
normal(0, 5) Intercept <NA> <NA> user | ||
normal(0, 5) Intercept sigma <NA> <NA> user | ||
|
||
# .replace_prior errors when passed a new prior without a match in old_prior [unicode] | ||
|
||
Code | ||
.replace_prior(old_prior, new_prior, warn = TRUE) | ||
Condition | ||
Warning: | ||
! One or more priors have no match in existing parameters: | ||
Intercept_shape ~ normal(0, 5) | ||
ℹ To remove this warning consider changing prior specification. | ||
Output | ||
prior class coef group resp dpar nlpar lb ub source | ||
normal(0, 5) Intercept <NA> <NA> user | ||
normal(0, 5) Intercept sigma <NA> <NA> user | ||
|
||
# .replace_prior errors when passed a new prior without a match in old_prior [fancy] | ||
|
||
Code | ||
.replace_prior(old_prior, new_prior, warn = TRUE) | ||
Condition | ||
[1m[33mWarning[39m:[22m | ||
[1m[22m[33m![39m One or more priors have no match in existing parameters: | ||
Intercept_shape ~ normal(0, 5) | ||
[36mℹ[39m To remove this warning consider changing prior specification. | ||
Output | ||
prior class coef group resp dpar nlpar lb ub source | ||
normal(0, 5) Intercept <NA> <NA> user | ||
normal(0, 5) Intercept sigma <NA> <NA> user | ||
|
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