I am new to devtools and usethis, please bear with me if I asked something stupid. I would like to build an internal package to have better management of my current project.
I have watched the introduction video but i have the following questions:
From my understanding, one function will need to create one .R in the R folder, how do I use the other function within the package
How to import other developing packages? for example, I have two developing projects, ProjectA and ProjectB. Project B's func_b() uses ProjectA's func_a() , how do I do that?
how do I create global variables or use data within the package development?
I suggest you look at (simple) existing packages to get an idea what files you need to create, etc. E.g two of my quite small packages could be good examples:
If you want to put a data set in the package, see the appropriate section in the "R packages" book: R Packages (2e) - 7 Data
You can still ask further questions on this forum, but I'd recommend having one question per forum topic, this way it's easier for folks to see at a glance whether they can help. Good luck!