[R] Reset R environment through R command

Ralf B ralf.bierig at gmail.com
Thu Jul 29 19:26:30 CEST 2010


With environment I actually meant workspace.

On Thu, Jul 29, 2010 at 1:22 PM, Ralf B <ralf.bierig at gmail.com> wrote:
> Is it possible to remove all variables in the current environment
> through a R command.
>
> Here is what I want:
>
> x <- 5
> y < 10:20
> reset()
> print(x)
> print(y)
>
> Output should be NULL for x and y, and not 5 and 10:20.
>
> Can one do that in R?
>
> Best,
> Ralf
>



More information about the R-help mailing list