I'm creating an R package that references a static shapefile in one place and two png files. I've looked around for the last two hours to find an answer as to:
- Where to store these files. Do I just create a file called resources and reference that in the function? Because it didn't work when I tried.
- How to reference them in the functions I've created. I'm not sure I fully understand how the package calls external objects and how to go about referencing. For the path, I was typing in "../resources/object.png" and that wasn't working.
This is probably super easy for experienced package creators, but I figured I'd ask because I just can't figure it out.