Cleber Nogueira Borges
2008-Jan-26 18:01 UTC
[R] double-click in RData file versus load( file )
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.
On 26/01/2008 1:01 PM, Cleber Nogueira Borges 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!Which version of R are you using? It works fine for me in 2.6.1. What do you see when R starts? It should display something like> > R version 2.6.1 (2007-11-26) > Copyright (C) 2007 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type 'license()' or 'licence()' for distribution details. > > Natural language support but running in an English locale > > R is a collaborative project with many contributors. > Type 'contributors()' for more information and > 'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > > [Previously saved workspace restored]and the last line indicates the attempt to load the saved data. Duncan Murdoch> > 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.
Gabor Grothendieck
2008-Jan-26 18:14 UTC
[R] double-click in RData file versus load( file )
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. >
Cleber Nogueira Borges
2008-Jan-26 21:23 UTC
[R] double-click in RData file versus load( file )
hello Gabor, the result in combobox is: R version 2.6.1 (2007-11-26) - C:\R I not have Perl installed! I remember that I deleted it!> Just double click on Rversions.hta from Windows Explorer. > Alternately place it anywhere in your path and then enter > its name in the Windows console without arguments: > > Rversions.hta > > Rversions.bat and all the other utilities wor the same way. Neither > Rversions.hta nor any of the other programs require that you be in > the R directory and, in fact, its probably better that you are not since > if you are then it ignores the registry and assumes the version of > R you are in is your current version. > > Rfind.bat could not find Perl. It looks in a few common places. Its still > possible you have Perl installed but its not in the places it knows > about. > > There is some info in the README also at http://batchfiles.googlecode.com > >_______________________________________________________ Experimente j? e veja as novidades.
Gabor Grothendieck
2008-Jan-26 21:24 UTC
[R] double-click in RData file versus load( file )
OK. The system only knows about one R version. What about the answer to my original second question. If you start up R and then load the .Rdata file (which you previously indicated works) and then save your workspace using a different name from the original Rdata file and then double click on that new Rdata file does that get you the variables in the new Rdata file? On Jan 26, 2008 4:23 PM, Cleber Nogueira Borges <klebyn at yahoo.com.br> wrote:> hello Gabor, > > the result in combobox is: > > R version 2.6.1 (2007-11-26) - C:\R > > I not have Perl installed! I remember that I deleted it! > > > > Just double click on Rversions.hta from Windows Explorer. > > Alternately place it anywhere in your path and then enter > > its name in the Windows console without arguments: > > > > Rversions.hta > > > > Rversions.bat and all the other utilities wor the same way. Neither > > Rversions.hta nor any of the other programs require that you be in > > the R directory and, in fact, its probably better that you are not since > > if you are then it ignores the registry and assumes the version of > > R you are in is your current version. > > > > Rfind.bat could not find Perl. It looks in a few common places. Its still > > possible you have Perl installed but its not in the places it knows > > about. > > > > There is some info in the README also at http://batchfiles.googlecode.com > > > > > > > > > _______________________________________________________ > > Yahoo! Mail - Sempre a melhor op??o para voc?! > Experimente j? e veja as novidades. > http://br.yahoo.com/mailbeta/tudonovo/ > >
Cleber Nogueira Borges
2008-Jan-28 13:36 UTC
[R] double-click in RData file versus load( file )
hi Duncan, I can't access file greater than 3 mb in my work! :-( :-( ((( unfortunately, is not a joke! I need a new job :-D ))) When I return home, I will do download the patch and report the results to you! :-( Thanks for your attention! Cleber> It is now fixed in the version available from > > http://www.stats.uwo.ca/faculty/murdoch/CRAN/bin/windows/base/rpatched.html > > > and will be on CRAN within a few hours. Could you please try it and > confirm that it works? > > Duncan Murdoch_______________________________________________________ Experimente j? e veja as novidades.