I got some warnings running susie (I'd be happy to generate a reproducible example if you'd like), so I thought I'd make a pull request fixing the problem. inherits(foo,"bar") is more or less equivalent to any(class(foo)=="bar"). In general it's not a good idea to assume the return value of class is scalar. The warning was :
Warning message:
In if (class(res) == "susie") res = res$alpha :
the condition has length > 1 and only the first element will be used
I got some warnings running susie (I'd be happy to generate a reproducible example if you'd like), so I thought I'd make a pull request fixing the problem.
inherits(foo,"bar")
is more or less equivalent toany(class(foo)=="bar")
. In general it's not a good idea to assume the return value ofclass
is scalar. The warning was :and comes from setting
in
.Renviron