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

Tiago Olivoto t|@goo||voto @end|ng |rom gm@||@com
Fri Dec 11 18:32:14 CET 2020


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

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list