Hi First, sorry if I get the terminology wrong, I am still quite new to the concept of using environments and workspaces.
Say I have a statement in a package SIM like sim <- TYPE where the variable TYPE is initialized in the package to e.g. "exponential" (SIM::TYPE == "exponential"). Now, I want to give the user the option of specifying the variable TYPE, but to the effect, that if the user does not define a variable TYPE in the user workspace (.GobalEnv), the one in the namespace from the package is used. In other words, I want to look first in the workspace, and then in SIM:: for the variable TYPE. How can do this? Thanks, Rainer -- Rainer M. Krug email: RMKrug<at>gmail<dot>com
pgpFvdLZpRyLG.pgp
Description: PGP signature
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel