When developing packages in R
all R
source files are put in the subdirectory R/
, and all compiled code is put in the subdirectory src/
.
I would like to add some organisation to files within these folders, rather than have everything dumped at the top level. For example, lets say I'm hypothetically developing a client-server application. Logically, I would like to organise all my client R source files in R/client/
and all my server R source files in R/server/
.
Is it possible to organise code in subfolders when developing a package, and if so, how? The Writing R Extensions manual doesn't offer any guidance, nor does R CMD build
detect files stored in subfolders under R/
.