[R] Set values in namespaces

Thomas Stabla statho3 at web.de
Mon Jan 5 14:14:18 CET 2004


Hello,

I want to use global variables in a package which is using a namespace.
But I don`t know how to change the values of the global variables.

I know how to get the value of the variables, e.g.

> base::pi
[1] 3.141593

but following code doesn`t work

> base::pi <- 3.14
Error: Object "base" not found

Thanks for your help,
Thomas Stabla

--
> version
         _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    1
minor    8.1
year     2003
month    11
day      21
language R




More information about the R-help mailing list