[Rd] How to organized code in the R/ directory of a package?

Tobias Verbeke tobias.verbeke at openanalytics.be
Thu Dec 10 23:22:49 CET 2009


Peng Yu wrote:
> I'm making a package, Current, I put all R files in the R/ directory
> in the package (without using subdirectory). This will become a
> problem when there are many files in the directory. I'm wondering how
> to use subdirectories in R/?

The standard solution is (I would think) to organize the code
such that functions belonging together are grouped in one file.

Best,
Tobias

> 
> Does 'R CMD INSTALL' install the files in the subdirectories automatically?
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
>



More information about the R-devel mailing list