When using a stock with discards, FLRef::ssmvln returns an error: Error in if (!is.na(ss3rep$discard)) { : the condition has length > 1 I propose that line 490 of utils.r should change from checking is.na(ss3rep$discard) to is.null(ss3rep$discard)