[Rd] Defining Constant variable in a package

Christophe Genolini cgenolin at u-paris10.fr
Fri May 15 16:52:12 CEST 2015


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 <cgenolin at u-paris10.fr 
> <mailto:cgenolin at u-paris10.fr>> 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 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
>     NAMESPACE file?
>
>     Christophe
>
>     ______________________________________________
>     R-devel at r-project.org <mailto:R-devel at r-project.org> mailing list
>     https://stat.ethz.ch/mailman/listinfo/r-devel
>
>


	[[alternative HTML version deleted]]



More information about the R-devel mailing list