Open lentinj opened 1 year ago
Doesn't look like [[
as an lvalue works either.
EDIT: Fixed in df8dc70728b9a93546048a7fdf9798f9410d4f1a
stock_ss(nllstock__weight) <- weight
and stock_ss(fleet_stock__catch)
both expect a scalar result, not vector.
Currently when subsetting,
x[1,2,3]
will convert fromarray<Type>
toType
. I suspect this causes more headaches than it solves, in particular, whethersum()
will work on the end result.Try turning it off, and see if we can get by with using
[[
to resolve any cases that it breaks.If this works, we can get rid of the condition surrounding sum in
g3l_distribution_sumofsquares()