[R] double-click in RData file versus load( file )

Gabor Grothendieck ggrothendieck at gmail.com
Sat Jan 26 19:14:51 CET 2008


When you double click it does it start up the same version of R
as when you manually start R?

If you manually start R, load it, save it under another name and
then exit R and double click the new name does that work?

On Jan 26, 2008 1:01 PM, Cleber Nogueira Borges <klebyn at yahoo.com.br> wrote:
> hello all,
>
> when I start up the R and I execute o follow code:
>
>  > ls()
> character(0)
>  > x=123
>  > assign("test_x", x, envir = .GlobalEnv )
>  > ls()
> [1] "test_x" "x"
>  > setwd('C:\\R\\etc')
>  > save.image('TEST.RData')
>  > q('no')
>
> I have two different behaviours:
>
> (a) - when I start up R again by "double click" in the file TEST.RData;
> (b) - when I start up R and load the file TEST.RData by window menu in
> Rgui or
> invoke by command ' load('C:\\R\\etc\\TEST.RData')
>
>
> In case (a): I can't see my previous variables anymore!
>  > ls()
> character(0)
>
>
> In case (b): I get my previous variables again!
>  > load('C:\\R\\etc\\test.rdata')
>  > ls()
> [1] "test_x" "x"
>  >
>
> Is it the correct behaviour?
> the two way don't must be the same?
>
>
> Thank for explanations...
>
> Cleber Borges
>
>
>
>
>
>
>
>
>
>
> _______________________________________________________
>
> Experimente já e veja as novidades.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list