I am trying to create my first R-package using R Studio.
I am learning from these useful tutorials:
but I have few questions still.
The package I developed is composed of the main function which requires other functions to calculate or do statistical analysis on a dataset. I wrote every function in separate scripts for a total of 9 scripts, and the main function has to source them in order to work (they are in the same R-folder).
Looking at the tutorials, I learnt the functions of the future package can be in the same script. Is this compulsory? Should I put all the functions together or can I have multiple scripts as I already have?
Does this affect the final package or once it is on CRAN? Do I have to follow a different procedure to create the package?