Greg Minshall
2014-Jul-01 15:26 UTC
[Rd] creating a package from a development source tree
hi. this is sort of a software methodology question. i'm working on developing a package (with C source code). developing it, i use autotools, git, make, and such like. as a result, there are random files in my source code directory that "R CMD check" would rather not see. some of these files (such as .git and friends) i could arrange to move to "just above" my development subtree; others of these (such as configure.ac and the random crud autoreconf(1) and friends leave laying around) can't be moved (afaik). i'm curious how people move from their personal development tree to a tree from which the package can be passed to "R CMD *". do "you" have a makefile in their tree that creates this? during development, is this the path you use for building and testing? cheers, Greg Minshall
Marc Schwartz
2014-Jul-01 16:17 UTC
[Rd] creating a package from a development source tree
On Jul 1, 2014, at 10:26 AM, Greg Minshall <minshall at acm.org> wrote:> hi. this is sort of a software methodology question. > > i'm working on developing a package (with C source code). developing > it, i use autotools, git, make, and such like. as a result, there are > random files in my source code directory that "R CMD check" would rather > not see. some of these files (such as .git and friends) i could arrange > to move to "just above" my development subtree; others of these (such as > configure.ac and the random crud autoreconf(1) and friends leave laying > around) can't be moved (afaik). > > i'm curious how people move from their personal development tree to a > tree from which the package can be passed to "R CMD *". do "you" have a > makefile in their tree that creates this? during development, is this > the path you use for building and testing? > > cheers, Greg MinshallHi, Run 'R CMD check' on the file built from 'R CMD build', rather than on the actual package source file tree, as per: http://cran.r-project.org/doc/manuals/r-patched/R-exts.html#Checking-packages from the Writing R Extensions manual. You can also use the file .Rbuildignore to define files that should be excluded. See the fifth paragraph in: http://cran.r-project.org/doc/manuals/r-patched/R-exts.html#Building-package-tarballs Regards, Marc Schwartz
Reasonably Related Threads
- DESCRIPTION.in file causes R CMD check to fail?
- Understanding the sequence of events when calling the R dpois function
- how to list external dependencies (i.e., non-R packages)?
- 2 setGeneric's, same name, different method signatures
- spec''ing metaprograming & rails CRUD