Closed erosquesada closed 5 months ago
@erosquesada Is there any reason not to add the folder with prepared data to gitignore? I do not see any obstacles to add it here, but maybe I’ve overlooked sth?
Hi @mrska, I checked the RCGs/RegionalOverviews/.gitignore and the data_RDBES is listed there. I must have checked the RCGs/.gitignore, not citing the folder, while writing the pull request.
Regarding the parametersDefinition.R I see here some dataset names hardcoded , which should rather be changed, so that user do not have to mofidy this script generating an overview. Regarding the logo_path I think this could be calculated in a if() statement, based on the regionSelected. And regarding the CLfileName and CEfileName, there are two lines with 'CL_2021_2021prepared' and 'CE_2021_2021prepared'. Do you have any idea for a workaround @erosquesada ? And regarding RDBES_dowlonad_date - maybe this should be moved as a parameter to the annual_overview_RDBES.R ?
I expanded and polished the pre-existent work on the structure of the code producing the annual overview starting from annual_overview_RDBES.R script. In brief:
The "annual_overview_RDBES.R" script was restructured with a section with basic user´s selections to custom the overview produced by the script and following sections with the relevant scripts to be sourced (see below).
The former section´s basic user´s selections include:
From these three entries, the parameters can be generated in automatic (see below).
The scripts now sourced in "annual_overview_RDBES.R" were:
All the scripts are hosted in the "RegionalOverviews\overviews_reports_RDBES\fisheries_overviews_RDBES\scripts".
The already existing function "func_download_data_from_sharepoint" was polished to report progress status in a format consistent with the other parts.
All the scripts involved in this pull request where added with an header explaining with detail the aim and reporting developers and developments history, in order to facilitate the contribution by others colleagues.
All the scripts involved in this pull request and involved in sourcing were provided with messages reporting the progress status.
Considerations about the pull request:
i) The use of func_download_data_from_sharepoint allows for the default downloading of the latest version of the prepared data prior to the generation of the overview. This may be useful to work all on the same input data and use as reference those on the ICES Share Point. ii) The prepared data are read from a folder in the repo which has not been added to the gitignore, pushing should be done carefully.