Skip to content
Prev 6351 / 12125 Next

[R-pkg-devel] Assigning a variable to global environment

Hi everyone,
This can be a very simple question, but I really have the following doubt.

CRAN Policies says that 'Packages should not modify the global environment
(user?s workspace)'. So, may I or may I not create a function that will
call internally the following code? (a simple example)

assign("name", 1, envir = .GlobalEnv)

Cheers
Tiago