| set_fun_env | R Documentation | 
This function can set/reset the environment of a function. This is e.g. used in function replace_package_fun where a function in a package is replaced by a global one. In such a case the environment of the function should be changed to that of the package otherwise other package functions can not be used.
set_fun_env(fn, ns = NULL, envir = globalenv())
| fn | Character with name of function | 
| ns | Character with name of package | 
| envir | Environment in which the environment statement is executed | 
the environment that is set (invisible)
See blog entry for an example of use.
## Not run: 
set_fun_env('fun','HOQCutil')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.