VAST icon indicating copy to clipboard operation
VAST copied to clipboard

Error in fit$data_list when calling plot()

Open lkghart opened this issue 2 years ago • 4 comments

I recently updated to VAST 3.10.0, and FishStatsUtils 2.12.0.

When I try to plot output using plot(), most of the figures that I'm used to seeing are there. However, the function runs into an error and ends with this message:

Making quantile residuals using conditional simulation and package DHARMa

Error in fit$data_list : $ operator is invalid for atomic vectors In addition: Warning message: In (function (fit, var_name = "D_gct", transform_var = log, k = 4, : plot_clusters will go slowly due to large size

I tried updating the the DHARMa package with install.package(), but this did not help.

Does anyone know if there's anything new that I should add to my script? From a related Issues thread, I found that I needed to add Version to make_settings(), since my machine automatically selects "VAST_v14_0_1_TMBad" if I don't specify "VAST_v14_0_1".

Thanks in advance! -Lilian

lkghart avatar Dec 27 '22 01:12 lkghart

Sorry ... I've been pretty backlogged ... did you ever get this sorted?

James-Thorson-NOAA avatar Jan 13 '23 23:01 James-Thorson-NOAA

Hi,

No--the last time that I ran a VAST model, this message came up.

lkghart avatar Jan 17 '23 01:01 lkghart

Could you try updating to the dev branch of FishStatsUtils and VAST and see if that fixes the issue?

I think I found and fixed an error in amend_output as called within plot_results that was using a global call to fit instead of the passed object.

James-Thorson-NOAA avatar Jan 19 '23 20:01 James-Thorson-NOAA

Thanks Jim! I’ll try that.

-Lilian

On Jan 19, 2023, at 11:52 AM, Jim Thorson @.***> wrote:

Could you try updating to the dev branch of FishStatsUtils and VAST and see if that fixes the issue?

I think I found and fixed an error in amend_output as called within plot_results that was using a global call to fit instead of the passed object.

— Reply to this email directly, view it on GitHub https://github.com/James-Thorson-NOAA/VAST/issues/356#issuecomment-1397592415, or unsubscribe https://github.com/notifications/unsubscribe-auth/APDPNNZGXFYKVADYHFRDERDWTGSP7ANCNFSM6AAAAAATJ76COM. You are receiving this because you authored the thread.

lkghart avatar Jan 19 '23 22:01 lkghart