[x] adjust fm_load_data() inputs according to excel file
[x] add a parameter seed = 29510
[x] add withr::local_seed(seed = seed) at the beginning of function
[x] use match.arg() at the beginning of fm_load_data() to restrict parameters to expected values
[x] specify non-default parameters in test and examples
[x] use full path inputs (no system.file call in function load_data())
[x] add test to verify match.arg behavior
[x] create same ticket for fm_fit_model() once this one is in pre-val
Client inputs
To be able to write the correct documentation, could you please list all parameters that you would like to see in the parameters of the functions, separated by family and by function
To do so, we will ask you to list the parameters as a 'roxygen' documentation for each function.
_If you think it would be better to move some parameters in the fm_fit_model(), it is still time to ask._
As user, I'd like to have all parameters possible as entry of the functions correctly documented, so that I can adapt the model to my datasets
Client - Validation
fm_load_data()
allows to change parametersspecies
,fleet
,fitted_data
,survey_data_file
,vmslogbook_data_file
,study_domain_file
,year_start
,year_end
,month_start
,month_end
,time_step
,k
,grid_xmin
,grid_xmax
,grid_ymin
,grid_ymax
andseed
=> https://balglave.github.io/FishMap/reference/fm_load_data.html
fm_load_data()
are documented=> https://balglave.github.io/FishMap/reference/fm_load_data.html => https://github.com/balglave/FishMap/blob/main/man/fm_load_data.Rd
time_step
andfitted_data
have a proper default value=> https://balglave.github.io/FishMap/reference/fm_load_data.html
We specify possible values with
match.atg()
:=> https://github.com/balglave/FishMap/blob/main/R/fm_load_data.R
match.arg()
returns an error for incorrect values :The error behavior is integrated in the test of the function :
=> https://github.com/balglave/FishMap/blob/main/tests/testthat/test-fm_load_data.R
In test :
=> https://github.com/balglave/FishMap/blob/main/tests/testthat/test-fm_load_data.R
In examples :
=> https://github.com/balglave/FishMap/blob/main/vignettes/user-running-fishmap.Rmd
Dev - Tech
fm_load_data()
inputs according to excel fileseed = 29510
withr::local_seed(seed = seed)
at the beginning of functionmatch.arg()
at the beginning offm_load_data()
to restrict parameters to expected valuesload_data()
)fm_fit_model()
once this one is in pre-valClient inputs
To be able to write the correct documentation, could you please list all parameters that you would like to see in the parameters of the functions, separated by family and by function
To do so, we will ask you to list the parameters as a 'roxygen' documentation for each function.
_If you think it would be better to move some parameters in the
fm_fit_model()
, it is still time to ask._You can look at the current documentation of each function to see what already exists: https://balglave.github.io/FishMap/reference/index.html
We would need this information:
fm_load_data()
,fm_fit_model()
,fm_generate_graphs()
You can give this information as a csv/Excel file if you want to, or any other mean that suits you