Re: [R] loading edited functions already in saved workspace automatically

2017-05-09 Thread Ralf Goertz
Am Tue, 09 May 2017 10:00:17 -0700 schrieb Jeff Newmiller : > This boils down to the fact that some "my ways" are more effective in > the long run than others.. but I really want to address the complaint > > "... sometimes tedious to rebuild my environment by reexecuting > commands in the history

Re: [R] loading edited functions already in saved workspace automatically

2017-05-09 Thread Jeff Newmiller
This boils down to the fact that some "my ways" are more effective in the long run than others.. but I really want to address the complaint "... sometimes tedious to rebuild my environment by reexecuting commands in the history" by asserting that letting R re-run a script that loads my function

Re: [R] loading edited functions already in saved workspace automatically

2017-05-09 Thread Michael Friendly
Ralf: You are afflicted with several mind bugs: * the "my-way mind bug" -- "I want to do it MY WAY, because that's sort of what I know" and also, * the "my-square-peg-should-fit-into-this-round-hole mind bug" -- "R should be able to do it MY WAY, but it puts obstacles in my path," perhaps a su

Re: [R] loading edited functions already in saved workspace automatically

2017-05-09 Thread Ralf Goertz
Am Sat, 6 May 2017 11:17:42 -0400 schrieb Michael Friendly : > On 5/5/2017 10:23 AM, Ralf Goertz wrote: > > Am Fri, 05 May 2017 07:14:36 -0700 > > schrieb Jeff Newmiller : > > > >> R normally prompts you to save .RData, but it just automatically > >> saves .Rhistory... the two are unrelated. >

Re: [R] loading edited functions already in saved workspace automatically

2017-05-06 Thread Michael Friendly
On 5/5/2017 10:23 AM, Ralf Goertz wrote: Am Fri, 05 May 2017 07:14:36 -0700 schrieb Jeff Newmiller : R normally prompts you to save .RData, but it just automatically saves .Rhistory... the two are unrelated. Not here. If I say "n" to the prompted question "Save workspace image? [y/n/c]: " my

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Bert Gunter
Haven't followed this closely, but ?Startup and links therein might be useful (esp .First). Bert On May 5, 2017 11:47 AM, "David Winsemius" wrote: > On May 5, 2017, at 7:48 AM, Michael Dewey wrote: > > Dear Ralf > > You can manually save it with > savehistory(insertyour preferred filenameher

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread David Winsemius
> On May 5, 2017, at 7:48 AM, Michael Dewey wrote: > > Dear Ralf > > You can manually save it with > savehistory(insertyour preferred filenamehere.r) > > or does that not do what you hoped? Or you can exit to your system browser and copy of the desired sections of the .Rhistory file that you

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Michael Dewey
Dear Ralf You can manually save it with savehistory(insertyour preferred filenamehere.r) or does that not do what you hoped? On 05/05/2017 14:44, Ralf Goertz wrote: Am Fri, 05 May 2017 06:30:01 -0700 schrieb Jeff Newmiller : The answer most people seem to use is to avoid depending on functio

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Jeff Newmiller
Read ?history. Seems somewhat platform dependent, but they ARE different. -- Sent from my phone. Please excuse my brevity. On May 5, 2017 7:23:14 AM PDT, Ralf Goertz wrote: >Am Fri, 05 May 2017 07:14:36 -0700 >schrieb Jeff Newmiller : > >> R normally prompts you to save .RData, but it just aut

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Ralf Goertz
Am Fri, 05 May 2017 07:14:36 -0700 schrieb Jeff Newmiller : > R normally prompts you to save .RData, but it just automatically > saves .Rhistory... the two are unrelated. Not here. If I say "n" to the prompted question "Save workspace image? [y/n/c]: " my history doesn't get saved. Version: R

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Jeff Newmiller
R normally prompts you to save .RData, but it just automatically saves .Rhistory... the two are unrelated. -- Sent from my phone. Please excuse my brevity. On May 5, 2017 6:44:50 AM PDT, Ralf Goertz wrote: >Am Fri, 05 May 2017 06:30:01 -0700 >schrieb Jeff Newmiller : > >> The answer most peopl

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Ralf Goertz
Am Fri, 05 May 2017 06:30:01 -0700 schrieb Jeff Newmiller : > The answer most people seem to use is to avoid depending on functions > in RData files, and in particular avoiding ever saving the > "automatic" ".RData" files at all. (Some people avoid using any RData > files, but the automatic loadin

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Jeff Newmiller
The answer most people seem to use is to avoid depending on functions in RData files, and in particular avoiding ever saving the "automatic" ".RData" files at all. (Some people avoid using any RData files, but the automatic loading of functions by ".RData" files is a particularly pernicious sour

[R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Ralf Goertz
Hi, In short: Is it possible to have the previously saved workspace restored and nevertheless load a function already existing in this workspace via .Rprofile anyway? In detail: I use different directories for different projects. In all those projects I use a function which I therefore try to get