khabbazian / l1ou

Detection of evolutionary shifts in Ornstein-Uhlenbeck models
GNU General Public License v2.0
19 stars 7 forks source link

matrix class warning #46

Closed miltontan closed 2 years ago

miltontan commented 3 years ago

Hi,

I assume this is relatively minor, but I am receiving the following warning message when I run functions that detect the class of input data:

Warning message: In if (class(Y) != "matrix") { : the condition has length > 1 and only the first element will be used

I believe this is related to how R v4 now has the class of matrices as a vector including "matrix" and "array".

jakeberv commented 2 years ago

@miltontan Hey Milton! I'm getting this same error on 4.1.1, running osx mojave. Was this ultimately a problem for you?

cecileane commented 2 years ago

I suspect this was fixed by #51 (see also #50)