Re: [Rd] Warning when calling formals() for `[`.

2018-10-06 Thread Laurent Gautier
Hi, Thanks for the note. How would explain the following snippet taken from `formals` doc page (the code comment is also from that doc) ? ## formals returns NULL for primitive functions. Use it in combination with ## args for this case. is.primitive(`+`) formals(`+`)

Re: [Bioc-devel] avoiding circular dependencies between a Data package and a Software package

2018-10-06 Thread Michael Lawrence
I think you're doing the right thing, suggesting the data package from the software package. This might require some manual intervention on the build system side to ensure that the software package is installed before passing full check, so that the data package can be installed/checked and

Re: [Rd] Warning when calling formals() for `[`.

2018-10-06 Thread Rui Barradas
Hello, I forgot to ask you to also try to break the `sum` instruction into its components: args(`sum`) does return a function. Therefore formals(args(`sum`)) returns something useable and no warning. Rui Barradas Às 18:42 de 06/10/2018, Rui Barradas escreveu: Hello, I believe that

Re: [Rd] Warning when calling formals() for `[`.

2018-10-06 Thread Rui Barradas
Hello, I believe that this is maybe not a *feature* but at least expected behaviour. The call formals(args(`[`)) breaks down to > args(`[`) NULL > formals(NULL) NULL Warning message: In formals(fun) : argument is not a function Hope this helps, Rui Barradas Às 18:26 de 06/10/2018,

[Bioc-devel] avoiding circular dependencies between a Data package and a Software package

2018-10-06 Thread Tim Triche, Jr.
Last night I submitted MTseeker and its companion package MTseekerData, both festooned with examples that run smoothly and pass BiocCheck. HOWEVER! Breaking up the data into a Data package inadvertently seems to have created a circular dependency between the Software and Data packages. I haven't

[Rd] Warning when calling formals() for `[`.

2018-10-06 Thread Laurent Gautier
Hi, A short code example showing the warning might the only thing needed here: ``` > formals(args(`[`)) NULL *Warning message:In formals(fun) : argument is not a function* > is.function(`[`) [1] TRUE > is.primitive(`[`) [1] TRUE ``` Now with an other primitive: ``` > formals(args(`sum`)) $...