[R] .Rdata files -- fortune?

PIKAL Petr petr.pikal at precheza.cz
Thu Mar 12 07:38:40 CET 2015


Hi

> -----Original Message-----
> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Jan Kim
> Sent: Wednesday, March 11, 2015 4:44 PM
> To: r-help at r-project.org
> Subject: Re: [R] .Rdata files -- fortune?
>
> On Wed, Mar 11, 2015 at 09:00:15AM -0400, Prof J C Nash (U30A) wrote:
> > Well put. I avoid them too, and go so far as to seek and destroy so
> > they don't get loaded unnoticed and cause unwanted consequences.
> >
> > ".RData files (the ones with nothing before the period) are just
> traps
> > for your future self, with no documentation. I avoid them like the
> plague."
>
> I absolutely agree. While I've solved the issue for myself long ago by
> always putting something like
>
>     alias R='R --no-save --no-restore'
>
> into my startup scripts (~/.bashrc or the like), I've seen too many
> others caught out by implicit saving / restoring of workspaces (e.g.
> by somehow just accepting that R "only works properly in this
> particular directory" and therefore doing all their work there at the
> cost of adopting various anti-patterns with respect to organising work
> into directories.
>
> Personally I think that auto saving / restoring workspaces should be
> reviewed, as it can, in practice, make it harder for people to render
> their work in a self-contained and reproducible way.

If this is considered I would beg for addind an option to keep autosave work for those who have different approach. If you keep the paradigm one project = one separate directory there shall be no problem with autosaving as you have only one Rdata file together with exported pictures, pdfs, xls and doc files.

If you save history to separate files you can also easily keep track of your work. If autosave is disabled and you could leave your session without warning I bet that there would be hundereds of questions similar to:

I worked whole day and after quitting R all my work is lost.

Cheers
Petr

>
> Best regards, Jan
>
> >
> > JN
> >
> > On 15-03-11 07:00 AM, r-help-request at r-project.org wrote:
> > > Message: 34
> > > Date: Tue, 10 Mar 2015 17:51:15 -0700
> > > From: Jeff Newmiller <jdnewmil at dcn.davis.CA.us>
> > > To: Rolf Turner <r.turner at auckland.ac.nz>, Erin Hodgess
> > >   <erinm.hodgess at gmail.com>, R help <r-help at stat.math.ethz.ch>
> > > Subject: Re: [R] .Rprofile vs. First (more of an opinion question)
> > > Message-ID: <E5A53229-B271-42D9-BEAB-73142B2F62F4 at dcn.davis.CA.us>
> > > Content-Type: text/plain; charset="UTF-8"
> > >
> > > I concur with Rolf.
> > >
> > > .RData files (the ones with nothing before the period) are just
> traps for your future self, with no documentation. I avoid them like
> the plague. I refer to specifically-named Something.RData files in my
> .R/.Rnw/.Rmd files to cache results of long computations, but they are
> optional in my workflow because I always have R code that can
> regenerate them.
> > >
> > > .Rprofile files offer consistency of behavior  regardless of which
> working directory you use, and you can comment them.
> > > -------------------------------------------------------------------
> --------
> > > Jeff Newmiller                        The     .....       .....  Go
> Live...
> > > DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.
> Live Go...
> > >                                       Live:   OO#.. Dead: OO#..
> Playing
> > > Research Engineer (Solar/Batteries            O.O#.       #.O#.
> with
> > > /Software/Embedded Controllers)               .OO#.       .OO#.
> rocks...1k
> > > -------------------------------------------------------------------
> -
> > > ------- Sent from my phone. Please excuse my brevity.
> >
> > ______________________________________________
> > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > 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.
>
> --
>  +- Jan T. Kim -------------------------------------------------------+
>  |             email: jttkim at gmail.com                                |
>  |             WWW:   http://www.jtkim.dreamhosters.com/              |
>  *-----=<  hierarchical systems are for files, not for humans  >=-----*
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

________________________________
Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. Delete the contents of this e-mail with all attachments and its copies from your system.
If you are not the intended recipient of this e-mail, you are not authorized to use, disseminate, copy or disclose this e-mail in any manner.
The sender of this e-mail shall not be liable for any possible damage caused by modifications of the e-mail or by delay with transfer of the email.

In case that this e-mail forms part of business dealings:
- the sender reserves the right to end negotiations about entering into a contract in any time, for any reason, and without stating any reasoning.
- if the e-mail contains an offer, the recipient is entitled to immediately accept such offer; The sender of this e-mail (offer) excludes any acceptance of the offer on the part of the recipient containing any amendment or variation.
- the sender insists on that the respective contract is concluded only upon an express mutual agreement on all its aspects.
- the sender of this e-mail informs that he/she is not authorized to enter into any contracts on behalf of the company except for cases in which he/she is expressly authorized to do so in writing, and such authorization or power of attorney is submitted to the recipient or the person represented by the recipient, or the existence of such authorization is known to the recipient of the person represented by the recipient.


More information about the R-help mailing list