Hi!
I need to access a file inside a package function, but I don't know hoy to indicate its route.
I am using a function (from another package) inside a package which takes the route of a json of a file as an input, so I cannot store the data in /data as a Rdata.
If I store my config json inside a directory of my package (i.e, inst/data/cfg.json), how do I access it from inside a function of my package?
When I load and run this package, it looks for it inside the working directory, not inside the directory of package...
Thanks!