Skip to content
Prev 207354 / 398506 Next

header files for R packages

On 01/24/2010 04:37 AM, David Lubbers wrote:
Hi,

If your package has a namespace, it is easy. If not, add one.

Just create the "constants" in one of your R files within the package. 
that's it. If you don't export the constant, that is all you really need.

Otherwise, you can lock the binding using lockBinding, but this is not 
full proof as one can still remove the variable and recreate it ... it 
just makes it harder to modify, but not impossible

Romain