Re: [R-pkg-devel] Issue with closures & devtools::document/check

2015-06-28 Thread James Toll
> On Jun 28, 2015, at 2:58 PM, Winston Chang wrote: > > If you want to change that, you can add this to the top of square.R: > > #' @include testClosure.R Yes, I believe that mostly fixed my issue. Thank you. I also needed to include NULL after that line, so that documentation would build

Re: [R-pkg-devel] Issue with closures & devtools::document/check

2015-06-28 Thread Winston Chang
This is a devtools-specific question, so it really belongs on the rdevtools mailing list: https://groups.google.com/forum/#!forum/rdevtools That said, this is probably happening because square.R is being processed before testClosure.R. By default, the files are processed in lexicographical orde

[R-pkg-devel] Issue with closures & devtools::document/check

2015-06-28 Thread James Toll
Hi, I’m working on putting together a package of some functions I’ve been using and I’m running into an issue with closures. I’m using Rstudio and devtools. Here is a simple example that shows the problem I’m having. file: R/testClosure.R #' Test Closure #' #' This function is an example of a