Re: [Bioc-devel] help with imports for new package and other questions

2015-08-20 Thread Lo
oh! that's cool! super nice, will try it. thanks a lot! On 08/20/2015 12:46 PM, Adrienne Stilp wrote: Hi Lorena, For your last question about coding style, you could look into the lintr package: https://github.com/jimhester/lintr You can run it either as an R function, or add it as a plugin

Re: [Bioc-devel] help with imports for new package and other questions

2015-08-20 Thread Adrienne Stilp
Hi Lorena, For your last question about coding style, you could look into the lintr package: https://github.com/jimhester/lintr You can run it either as an R function, or add it as a plugin to some editors. The developer, Jim Hester, is also part of the Bioconductor team! Adrienne > On Aug 14

Re: [Bioc-devel] help with imports for new package and other questions

2015-08-17 Thread Lo
Thanks a lot Hervé. Your suggestions are perfect. I fully imported these classes because I realized that it would be less chances of errors, as you say here. I used that, and it is true that I am using these functions for dplyr. The reason I tried to do with dplyr is was to summarize quicker.

Re: [Bioc-devel] help with imports for new package and other questions

2015-08-17 Thread Hervé Pagès
Hi Lorena, In your particular case it seems to me that you're using dplyr internally for convenient data frame transformations (nothing that couldn't be done with plain R BTW), and that you're only using a few dplyr symbols for this. The codetoolsBioC package could be useful to help you identify

Re: [Bioc-devel] help with imports for new package and other questions

2015-08-14 Thread Kasper Daniel Hansen
As I understand it, the function sometimes gives false positives (I have never experience it myself though - Michael Lawrence has, but perhaps his use cases are more complicated). My guess is that this is a showstopper for including it in codetools (where it would be great to go, in my opinion).

Re: [Bioc-devel] help with imports for new package and other questions

2015-08-14 Thread Lo
Hi, thanks a lot for the link!, I would definitely try that one...you save me a lot of time! On 08/14/2015 10:03 AM, Kasper Daniel Hansen wrote: > Indeed, you need to use importFrom to selectively import. > > In this process you'll realize how great it would be to have a > function called > i

Re: [Bioc-devel] help with imports for new package and other questions

2015-08-14 Thread Vincent Carey
On Fri, Aug 14, 2015 at 10:03 AM, Kasper Daniel Hansen < kasperdanielhan...@gmail.com> wrote: > Indeed, you need to use importFrom to selectively import. > > In this process you'll realize how great it would be to have a function > called > importEverythingFromExcept( PACKAGE, NOT_THESE_FUNCTIO

Re: [Bioc-devel] help with imports for new package and other questions

2015-08-14 Thread Kasper Daniel Hansen
Indeed, you need to use importFrom to selectively import. In this process you'll realize how great it would be to have a function called importEverythingFromExcept( PACKAGE, NOT_THESE_FUNCTIONS) but last time I raised this issue on R-devel, I was gently shut down. In the meantime you should us

[Bioc-devel] help with imports for new package and other questions

2015-08-14 Thread Lo
Hi, I am trying to get right my new package (http://github.com/lpantano/isomiRs). But I am having some problems with the packages I import. The main problem is that I get warnings while loading my packages because some dplyr replaces functions in others packages like S4Vectors and others.