title: R package: use a custom file/directories structure in pkg/R and pkg/src folders
body: <p>I'm writing a R package which begins to grow in size, and so would really appreciate to use a custom structure in folders pkg/R/ and (especially) in pkg/src/.</p>
  
  <p>For example, let's say I have two families of algorithms of some type A, and some functions of type B, and a main entry point. Ideally R/ or src/ folders would be organized as follow:</p>
  
  <ul>
  <li>typeA/
  <ul>
  <li>algorithms1/
  <ul>
  <li>algo11.ext</li>
  <li>...</li>
  </ul></li>
  <li>algorithms2/
  <ul>
  <li>algo21.ext</li>
  <li>...</li>
  </ul></li>
  </ul></li>
  <li>typeB/
  <ul>
  <li>function1.ext</li>
  <li>...</li>
  </ul></li>
  <li>main.ext</li>
  </ul>
  
  <p>with "ext" in {R,cpp,c,f,...}, and potentially two files having the same name.</p>
  
  <p>Is it possible ? If yes, how can I do that ?</p>
  
  <p>Thanks in advance !</p>
  
  <hr>
  
  <p>[2012-12-31] EDIT: an idea would be to write a few scripts - maybe inside another R package - to (un)flatten a structured package for tests or diffusion. But there is probably a better solution, so I will wait a bit.</p>