I am working on an R package that builds on a postgreSQL database. Hence there are some.sql
files that contain a recommended table structure for the corresponding database.
I wonder where to put these files if I want to build a package (for CRAN)?
maybe put them in folder "inst" (top level), like inst/sql
then the user or a function of yours could access files there with
and execute them
http://cran.r-project.org/doc/manuals/R-exts.html#Package-subdirectories
There will be a top folder in the library folder called sql which is nice, and you can access it from R, which is what you need.