Takes R variables and exprort them as environment variables
Names of variables.
This function was developed for analysis pipelines running R and shell chunks with knitR. Changing the environment in one shell chunk has no effect on the next ones, but changing it in a R chunk has a global effect.
This function uses
.Internal(Sys.setenv() because its syntax was more
friendly for automation.
Returns shell commands that, would have the same effect. This is useful when cut-pasting from knitR workflows that use R to change the environment and then run some shell chunks.
1 2 3
foo <- "bar" toto <- "tata" exportInEnv("foo", "toto")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.