repar = get_restricted_ou(H=NULL, theta=c(0,0), Sig='diag', lossmiss=NULL)
mod1 = glinv(tree = ape::rtree(10),
x0 = c(0,0),
X = NULL,
repar = repar)
mod2 = mod1
mod3 = clone_model(mod1)
traits = matrix(rnorm(20), 2, 10)
set_tips(mod1, traits)
print(has_tipvals(mod1)) # TRUE
print(has_tipvals(mod2)) # TRUE
print(has_tipvals(mod3)) # FALSE
Run the code above in your browser using DataLab