Re: [Rd] Loose code in R package files

2011-06-15 Thread peter dalgaard
On Jun 15, 2011, at 16:22 , Prof Brian Ripley wrote: > > So your example creates an object 'x' in the package or name space. Which is > perfectly legal, but maybe not intentional. For example, R's base package > does > ... Yes. Nothing illegal about it, but might be worth noticing that if La

Re: [Rd] Loose code in R package files

2011-06-15 Thread Prof Brian Ripley
On Tue, 14 Jun 2011, Stephen Ellison wrote: I'm sure i've seen the answer to this, but can't find it: If there is executable code in an R package .R file that does not return a function (that is, something like x <- rnorm(5), outside any function body ), what will actually happens at build an

Re: [Rd] How to see source Rd files from the html help pages for R functions

2011-06-15 Thread Uwe Ligges
On 14.06.2011 19:50, Nipesh Bajaj wrote: Hello again, I am wondering wherether it is possible to get the source Rd file, looking at the html help page, for any r function. I am fighting hard to put few mathematical expressions in my help files for my custom package. Therefore I would like to le

[Rd] How to see source Rd files from the html help pages for R functions

2011-06-15 Thread Nipesh Bajaj
Hello again, I am wondering wherether it is possible to get the source Rd file, looking at the html help page, for any r function. I am fighting hard to put few mathematical expressions in my help files for my custom package. Therefore I would like to learn from some existing html help pages how to

[Rd] Loose code in R package files

2011-06-15 Thread Stephen Ellison
I'm sure i've seen the answer to this, but can't find it: If there is executable code in an R package .R file that does not return a function (that is, something like x <- rnorm(5), outside any function body ), what will actually happens at build and load time? And (more importantly, so I can p

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-15 Thread Kornelius Rohmeyer
Am 15. Juni 2011 09:19 schrieb Uwe Ligges : > > > On 15.06.2011 01:21, Kornelius Rohmeyer wrote: >> >> 2011/6/11 Duncan Murdoch: >> [...] >>> >>> I don't understand.  It sounds as though you're saying these two >>> contradictory things: >>> >>>  - your package works with any version of graph >>>  -

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-15 Thread Uwe Ligges
On 15.06.2011 01:21, Kornelius Rohmeyer wrote: 2011/6/11 Duncan Murdoch: [...] I don't understand. It sounds as though you're saying these two contradictory things: - your package works with any version of graph - CRAN builds a version of graph that is incompatible with your package. N