Re: [R] .Rhistory in R.app

2012-04-08 Thread David Winsemius


On Apr 8, 2012, at 12:56 AM, Berend Hasselman wrote:



On 08-04-2012, at 03:31, nkschmidt wrote:

Hi Maria, you need to name your history file  
somefilename.Rapp.history,

example

savehistory(file = "history.Rapp.history")

/nkschmidt


You replied to a message almost two years old, which to my mind is  
pretty useless.


Not only that but the information is at best incomplete, and to some  
extent misleading.


The saving of history sessions with the name ".Rhistory" in the  
working directory after normally exiting R.app is automatic unless  
specifically refused or disabled. Maria should have offered what  
evidence she has for them not being saved under the name .Rhistory.  
They are, of course,  invisible to the Mac Finder due to their having  
a leading in their name. That's my guess for why she might have  
erroneously concluded that they are not being saved. (I run my Finder  
with settings that show these "dot-files" but one does need to know  
that these dotfiles often contain system critical stuff so deleting  
them is unwise.) If she wanted to check the accuracy of this  
information she could have opened a Terminal session , navigate to the  
working directory and use the unix command: ls  ... this is an example  
of such usage:


david-winsemiuss-mac-pro:~ davidwinsemius$ ls .Rhistory
.Rhistory

The Preferences panel from the File menu allows one to disable loading  
of history files when the next session is started, but under normal  
operating conditions she should also be able to see the history by  
clicking on the green-and-yellow striped icon at the top of her R  
Console window: "The Show/Hide R command History" icon.


--
David.


Original message is here: 
https://stat.ethz.ch/pipermail/r-help/2009-December/221490.html

Nabble does not host the R-help archive.

Berend



Maria Gouskova wrote


Dear R users,

I am having a minor but annoying issue with R.app. It doesn't retain
the history information from the previous sessions. By "history," I
mean a record of commands/functions entered into R rather than the
list of objects--that is properly recorded in the .Rdata file as  
well

as in a workspace file I save separately.
(...)
So if there is some kind of a fix
that doesn't involve upgrading R, I'd love to hear about it.

Maria Gouskova




--
View this message in context: 
http://r.789695.n4.nabble.com/Rhistory-in-R-app-tp956293p4540340.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


__
R-help@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.


David Winsemius, MD
West Hartford, CT

__
R-help@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.


Re: [R] .Rhistory in R.app

2012-04-07 Thread Berend Hasselman

On 08-04-2012, at 03:31, nkschmidt wrote:

> Hi Maria, you need to name your history file somefilename.Rapp.history, 
> example
> 
> savehistory(file = "history.Rapp.history")
> 
> /nkschmidt

You replied to a message almost two years old, which to my mind is pretty 
useless.
Original message is here: 
https://stat.ethz.ch/pipermail/r-help/2009-December/221490.html

Nabble does not host the R-help archive.

Berend


> Maria Gouskova wrote
>> 
>> Dear R users,
>> 
>> I am having a minor but annoying issue with R.app. It doesn't retain
>> the history information from the previous sessions. By "history," I
>> mean a record of commands/functions entered into R rather than the
>> list of objects--that is properly recorded in the .Rdata file as well
>> as in a workspace file I save separately.
>> (...)
>> So if there is some kind of a fix
>> that doesn't involve upgrading R, I'd love to hear about it.
>> 
>> Maria Gouskova
>> 
> 
> 
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/Rhistory-in-R-app-tp956293p4540340.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> __
> R-help@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.

__
R-help@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.


Re: [R] .Rhistory in R.app

2012-04-07 Thread nkschmidt
Hi Maria, you need to name your history file somefilename.Rapp.history, 
example

savehistory(file = "history.Rapp.history")

/nkschmidt


Maria Gouskova wrote
> 
> Dear R users,
> 
> I am having a minor but annoying issue with R.app. It doesn't retain
> the history information from the previous sessions. By "history," I
> mean a record of commands/functions entered into R rather than the
> list of objects--that is properly recorded in the .Rdata file as well
> as in a workspace file I save separately.
> (...)
>  So if there is some kind of a fix
> that doesn't involve upgrading R, I'd love to hear about it.
> 
> Maria Gouskova
> 


--
View this message in context: 
http://r.789695.n4.nabble.com/Rhistory-in-R-app-tp956293p4540340.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] .Rhistory in R.app

2009-12-10 Thread Rolf Turner


On 11/12/2009, at 8:30 AM, Maria Gouskova wrote:


Renaming the .Rhistory file to .Rosxhistory didn't solve the problem
for me--the file is still empty. And I have confirmed that it is a
problem specific to R.app--running R from Terminal works fine, adding
records to the existing .Rhistory file.




Sounds like a job for Superman (i.e. Simon Urbanek). :-)

cheers,

Rolf Turner

##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

__
R-help@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.


Re: [R] .Rhistory in R.app

2009-12-10 Thread Maria Gouskova
Renaming the .Rhistory file to .Rosxhistory didn't solve the problem
for me--the file is still empty. And I have confirmed that it is a
problem specific to R.app--running R from Terminal works fine, adding
records to the existing .Rhistory file.

Too bad there is no apparent workaround. Thanks, everyone.

Maria

On Wed, Dec 9, 2009 at 2:57 PM, Rob Goedman  wrote:
> Maria,
>
> Try changing the name of .Rhistory in the Startup preferences to something 
> like .Rosxhistory. Press enter to make sure the change is accepted and try 
> again.
> The problem is that R itself overwrites the file .Rhistory if it is told to 
> save the workspace.
>
> Rob
>
>
>
> On Dec 9, 2009, at 10:33 AM, Maria Gouskova wrote:
>
>> Dear R users,
>>
>> I am having a minor but annoying issue with R.app. It doesn't retain
>> the history information from the previous sessions. By "history," I
>> mean a record of commands/functions entered into R rather than the
>> list of objects--that is properly recorded in the .Rdata file as well
>> as in a workspace file I save separately.
>>
>> System details:
>>
>> R version 2.9.0
>> R.app GUI 1.28
>> Mac OS 10.6.2 (MacBook, Intel 2.4 GHz, 4 Gb RAM)
>>
>> Things I've done:
>>
>> R>Preferences>Startup>History: Read history file on startup is
>> checked; R history file directory is specified with a path to my
>> preferred directory (~/Documents/...). I've tried it with the default
>> setting, too--it makes no difference.
>>
>> I've checked the permissions on the .Rhistory file. The default
>> .Rhistory file created by R has the permissions set at -rw-r--r--.
>>
>> I've moved the .Rhistory file to a different location (Desktop), so
>> that R would create a new one. Makes no difference--command history is
>> still empty at startup.
>>
>> R has kept track of history on my system in the past--the file I moved
>> to the desktop has a record of my work from about a year ago. (By the
>> way, that file's permissions are -rwx-.) Judging by what is in the
>> old .Rhistory file, the problem started around the time of my upgrade
>> from 2.7.x to 2.8. I am reluctant to upgrade to R 2.10 in the middle
>> of a project, because every R upgrade I've done in the past has broken
>> something, and I've had nothing but grief with my open source apps
>> after upgrading to Snow Leopard. So if there is some kind of a fix
>> that doesn't involve upgrading R, I'd love to hear about it.
>>
>> Maria Gouskova
>>
>> __
>> R-help@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.
>
>

__
R-help@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.


Re: [R] .Rhistory in R.app

2009-12-09 Thread Rob Goedman
Maria,

Try changing the name of .Rhistory in the Startup preferences to something like 
.Rosxhistory. Press enter to make sure the change is accepted and try again.
The problem is that R itself overwrites the file .Rhistory if it is told to 
save the workspace.

Rob



On Dec 9, 2009, at 10:33 AM, Maria Gouskova wrote:

> Dear R users,
> 
> I am having a minor but annoying issue with R.app. It doesn't retain
> the history information from the previous sessions. By "history," I
> mean a record of commands/functions entered into R rather than the
> list of objects--that is properly recorded in the .Rdata file as well
> as in a workspace file I save separately.
> 
> System details:
> 
> R version 2.9.0
> R.app GUI 1.28
> Mac OS 10.6.2 (MacBook, Intel 2.4 GHz, 4 Gb RAM)
> 
> Things I've done:
> 
> R>Preferences>Startup>History: Read history file on startup is
> checked; R history file directory is specified with a path to my
> preferred directory (~/Documents/...). I've tried it with the default
> setting, too--it makes no difference.
> 
> I've checked the permissions on the .Rhistory file. The default
> .Rhistory file created by R has the permissions set at -rw-r--r--.
> 
> I've moved the .Rhistory file to a different location (Desktop), so
> that R would create a new one. Makes no difference--command history is
> still empty at startup.
> 
> R has kept track of history on my system in the past--the file I moved
> to the desktop has a record of my work from about a year ago. (By the
> way, that file's permissions are -rwx-.) Judging by what is in the
> old .Rhistory file, the problem started around the time of my upgrade
> from 2.7.x to 2.8. I am reluctant to upgrade to R 2.10 in the middle
> of a project, because every R upgrade I've done in the past has broken
> something, and I've had nothing but grief with my open source apps
> after upgrading to Snow Leopard. So if there is some kind of a fix
> that doesn't involve upgrading R, I'd love to hear about it.
> 
> Maria Gouskova
> 
> __
> R-help@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.

__
R-help@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.


Re: [R] .Rhistory in R.app

2009-12-09 Thread Rolf Turner


I just experimented and I find that, exactly as Maria described,
on my system no commands get added to .Rhistory when I start R using  
the GUI.


The ``timestamp'' that is implemented in my .Rprofile gets added, but  
no commands

that I typed in the GUI window appeared.

I had never noticed this before since I never actually use the GUI.   
(Like ***all

civilized*** people, I use the command line exclusciously. :-) )

I am running R 2.10.0, so updating is not the issue.

Maria:  Why don't you just start R from the command line, like a  
civilized

person ( :-) ) and forget about the  GUI, which only
gets in the way of serious work?

cheers,

Rolf Turner

P. S.:

 > sessionInfo()
R version 2.10.0 (2009-10-26)
i386-apple-darwin8.11.1

locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8

attached base packages:
[1] datasets  utils stats graphics  grDevices methods   base

other attached packages:
[1] misc_0.0-11fortunes_1.3-6 MASS_7.3-3

On 10/12/2009, at 7:33 AM, Maria Gouskova wrote:


Dear R users,

I am having a minor but annoying issue with R.app. It doesn't retain
the history information from the previous sessions. By "history," I
mean a record of commands/functions entered into R rather than the
list of objects--that is properly recorded in the .Rdata file as well
as in a workspace file I save separately.

System details:

R version 2.9.0
R.app GUI 1.28
Mac OS 10.6.2 (MacBook, Intel 2.4 GHz, 4 Gb RAM)

Things I've done:

R>Preferences>Startup>History: Read history file on startup is
checked; R history file directory is specified with a path to my
preferred directory (~/Documents/...). I've tried it with the default
setting, too--it makes no difference.

I've checked the permissions on the .Rhistory file. The default
.Rhistory file created by R has the permissions set at -rw-r--r--.

I've moved the .Rhistory file to a different location (Desktop), so
that R would create a new one. Makes no difference--command history is
still empty at startup.

R has kept track of history on my system in the past--the file I moved
to the desktop has a record of my work from about a year ago. (By the
way, that file's permissions are -rwx-.) Judging by what is in the
old .Rhistory file, the problem started around the time of my upgrade
from 2.7.x to 2.8. I am reluctant to upgrade to R 2.10 in the middle
of a project, because every R upgrade I've done in the past has broken
something, and I've had nothing but grief with my open source apps
after upgrading to Snow Leopard. So if there is some kind of a fix
that doesn't involve upgrading R, I'd love to hear about it.

Maria Gouskova


##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

__
R-help@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.


[R] .Rhistory in R.app

2009-12-09 Thread Maria Gouskova
Dear R users,

I am having a minor but annoying issue with R.app. It doesn't retain
the history information from the previous sessions. By "history," I
mean a record of commands/functions entered into R rather than the
list of objects--that is properly recorded in the .Rdata file as well
as in a workspace file I save separately.

System details:

R version 2.9.0
R.app GUI 1.28
Mac OS 10.6.2 (MacBook, Intel 2.4 GHz, 4 Gb RAM)

Things I've done:

R>Preferences>Startup>History: Read history file on startup is
checked; R history file directory is specified with a path to my
preferred directory (~/Documents/...). I've tried it with the default
setting, too--it makes no difference.

I've checked the permissions on the .Rhistory file. The default
.Rhistory file created by R has the permissions set at -rw-r--r--.

I've moved the .Rhistory file to a different location (Desktop), so
that R would create a new one. Makes no difference--command history is
still empty at startup.

R has kept track of history on my system in the past--the file I moved
to the desktop has a record of my work from about a year ago. (By the
way, that file's permissions are -rwx-.) Judging by what is in the
old .Rhistory file, the problem started around the time of my upgrade
from 2.7.x to 2.8. I am reluctant to upgrade to R 2.10 in the middle
of a project, because every R upgrade I've done in the past has broken
something, and I've had nothing but grief with my open source apps
after upgrading to Snow Leopard. So if there is some kind of a fix
that doesn't involve upgrading R, I'd love to hear about it.

Maria Gouskova

__
R-help@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.