You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a list is awkward for the user. pir_run must up the params to a list, allowing this interface:
# This should work
model_select_param <- create_gen_model_select_param(
alignment_params = alignment_params,
tree_prior = create_bd_tree_prior()
)
pir_run(
model_select_params = model_select_param,
...
)
Doing this is simple: in pir_run if is_model_select_param(model_select_params) == TRUE, model_select_params is not a list and must be made so. Something like this:
if (is_model_select_param(model_select_params) == TRUE) {
model_select_params <- list(model_select_params)
}
Write a test that the listing marked with # This should work works fine, using expect_silent.
The text was updated successfully, but these errors were encountered:
Currently,
pir_run
'smodel_select_params
argument assumes a list of 1 or more elements:Creating a list is awkward for the user.
pir_run
must up the params to a list, allowing this interface:Doing this is simple: in
pir_run
ifis_model_select_param(model_select_params) == TRUE
,model_select_params
is not a list and must be made so. Something like this:Write a test that the listing marked with
# This should work
works fine, usingexpect_silent
.The text was updated successfully, but these errors were encountered: