Re: [Rd] Defining Constant variable in a package

2015-05-15 Thread Christophe Genolini
Hi Michael, It works perfectly, thanks a lot! Christophe > I'm guessing you just need to define them in /R/constants.R and then export() > them from the NAMESPACE. > > On Fri, May 15, 2015 at 2:32 AM, Christophe Genolini > wrote: > > Hi all, > > In my pack

Re: [Rd] Defining Constant variable in a package

2015-05-15 Thread Michael Lawrence
I'm guessing you just need to define them in /R/constants.R and then export() them from the NAMESPACE. On Fri, May 15, 2015 at 2:32 AM, Christophe Genolini wrote: > Hi all, > > In my package, I define some constant. In the previous version of R, I > just define then in "/data/constants.R" but it

[Rd] Defining Constant variable in a package

2015-05-15 Thread Christophe Genolini
Hi all, In my package, I define some constant. In the previous version of R, I just define then in "/data/constants.R" but it seems that it is no longer possible. Instead, I am asked to "define them in the namespace". I am not sure to understand what it means. Shall I define them in the NAMESPA