Learn how packages are loading when creating a package. quick tip: library() should never be used within the R folder. Use the DESCRIPTION file. You can use the usethis::use_package().
Remove all the source() functions within R folder. Also remove any reference to working directory. In general, remove anything else that is not for package work.
Look into how to use the tidyverse styler and how to use it (I think there might be youtube videos on this).
@geocha30,
Best regards, Ify