In a package I am making, I am following advice here and elsewhere and using usethis::use_data_raw() to create a script to make a data frame and then runs usethis::use_data() to put this data frame in the package's data/ directory. See here for an example of script like this.
I can run this script manually of course, and it places the data correctly in data/, but I think it would be better if the package's build script could run this for me every time the package is built. Making a little Makefile to run this code is easy, but where does that Make go and how does it, or how could it, get used by the build process?
Sorry if this question is naive. I'm new to R package development and don't know what kind of build tools package builds use (e.g. if I go to the RStudio menu Build/Build Source Package, I don't know what build scripts are being run). Does the R package build process use Make? If so, where's its Makefile, and how can I customize it?