Peng Yu
2009-Dec-10 21:56 UTC
[Rd] How to organized code in the R/ directory of a package?
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/? Does 'R CMD INSTALL' install the files in the subdirectories automatically?
Tobias Verbeke
2009-Dec-10 22:22 UTC
[Rd] How to organized code in the R/ directory of a package?
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 > >
hadley wickham
2009-Dec-10 22:29 UTC
[Rd] How to organized code in the R/ directory of a package?
I have 145 R files in ggplot2, but don't have any problems navigating them (with appropriate tool support). Just how many files do you have? Hadley On Thu, Dec 10, 2009 at 3:56 PM, Peng Yu <pengyu.ut at gmail.com> 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/? > > 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 >-- http://had.co.nz/