You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function compute.catch.biomass() is created twice; both instances produce the same outputs but take different inputs. In plotting/compute_plot_products.R the function takes a file path as input...
total.catch.biomass<- rowSums(total.catch) # total catches by year in mt
return(total.catch.biomass)
}
This throws in error when executing plotting/plot_management_outputs.R because the former script is sourced in line 4 but then supplies a data object to the function in line 52.
Also note that plotting/compute_plot_products.R sources functions/fun_read_dat.R in line 3.
Solution
Resolve namespace clash. I commented out lines 61-92 in plotting/compute_plot_products.R to accommodate the use case in plotting/plot_management_outputs.R.
The text was updated successfully, but these errors were encountered:
Issue
The function
compute.catch.biomass()
is created twice; both instances produce the same outputs but take different inputs. Inplotting/compute_plot_products.R
the function takes a file path as input...pws-herring-basa/plotting/compute_plot_products.R
Lines 61 to 92 in caef7da
...whereas the
compute.catch.biomass()
created infunctions/fun_read_dat.R
takes a data object.pws-herring-basa/functions/fun_read_dat.R
Lines 133 to 162 in caef7da
This throws in error when executing
plotting/plot_management_outputs.R
because the former script is sourced in line 4 but then supplies a data object to the function in line 52.pws-herring-basa/plotting/plot_management_outputs.R
Line 4 in caef7da
pws-herring-basa/plotting/plot_management_outputs.R
Lines 51 to 52 in caef7da
Also note that
plotting/compute_plot_products.R
sourcesfunctions/fun_read_dat.R
in line 3.Solution
Resolve namespace clash. I commented out lines 61-92 in
plotting/compute_plot_products.R
to accommodate the use case inplotting/plot_management_outputs.R
.The text was updated successfully, but these errors were encountered: