Skip to content

Commit

Permalink
Add fix for false warning for 'scopy' when 'scopy' is not in use
Browse files Browse the repository at this point in the history
  • Loading branch information
hrue committed Dec 20, 2023
1 parent a69a021 commit 0a85b8c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rinla/R/f.R
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,13 @@
control.group <- ctrl_object(control.group, "group")
cont.group <- ctrl_update(control.group)

control.scopy <- ctrl_object(control.scopy, "scopy")
cont.scopy <- ctrl_update(control.scopy)
## otherwise, the 'experimental' warning is triggered without using 'scopy'
if (!is.null(scopy)) {
control.scopy <- ctrl_object(control.scopy, "scopy")
cont.scopy <- ctrl_update(control.scopy)
} else {
cont.scopy <- NULL
}


## CHECK ARGUMENTS.
Expand Down

0 comments on commit 0a85b8c

Please sign in to comment.