[R] Advice collating an R package
Glenn Schultz
glennmschultz at me.com
Wed Nov 11 16:16:44 CET 2015
Hi All,
When collating a package - where does the file of constants go?
I have an R package that defines 36 new classes and the AllClasses file is getting quite long. I would like to re-organize the files the following way - which is also easier for my personal mental map of what is going on.
#' @includes foo1.R foo2.R
setClass
setGeneric
setMethod(initialize)
constructor function
I also have a file fooC.R which defines the constants like days.in.month etc. So should every file be
#' @includes fooC. R foo1.R foo2.R
setClass
setGeneric
setMethod(initialize)
constructor function
Thanks,
Glenn
More information about the R-help
mailing list