On Sun, May 30, 2010 at 5:50 PM, Romain Francois <rom...@r-enthusiasts.com> wrote: > Hi, > > Sure. I could and I would provide a patch. Since this is more of a "nice to > have", I wanted to first find out whether others would find it useful, and > also if such a patch would have chances to get accepted by one of R-core > members. > > Sometimes patches I or others provide upfront are not accepted. I'm not > complaining about it, it is always an opportunity to learn something ... >
For starters you could write a function called "requireVersion" that does what you want. That would help you (since you say you often find yourself using this paradigm) and also it would help anyone else who does this. And since it wouldn't be a patch to R it wouldn't need R-gods to approve it. It would also make you think about how you'd parameterise the call - I wouldn't want to build something that had to parse "foo (>=2.1)", for example, but having a minimum.version argument makes more sense. Shouldn't be that difficult, you've written most of it already! It might then get included in one of the packages of miscellany on CRAN, and then maybe become core R functionality (if you sacrifice the required animal to the R-gods, of course). Barry ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel