[R] setting history file
Dear R Gurus: I would like to set the number of commands in the history file as 50 rather than 25. I would do this in the .First function. How do I set this, please? I tried history(max=50) and it prints what it has. I just want to set the size in .First. Thanks in advance, Sincerely, Edna __ 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] setting history file
On Wed, 10 Sep 2008, Edna Bell wrote: Dear R Gurus: I would like to set the number of commands in the history file as 50 rather than 25. It is neither of those. That is the default value of max.show, not of the size of the file. I would do this in the .First function. How do I set this, please? I tried history(max=50) and it prints what it has. Yes, but that is the number shown, not the number saved. You failed to follow the posting guide and tell us *anything* about your OS etc. But probably ?history tells you how to set the size of the history file via environment variable R_HISTSIZE. I just want to set the size in .First. Thanks in advance, Sincerely, Edna __ 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. PLEASE do. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ 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] setting history file
I am using R-2.7.2 on Windows XP. Sorry for the problems. Sincerely, Edna On Wed, Sep 10, 2008 at 11:54 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Wed, 10 Sep 2008, Edna Bell wrote: Dear R Gurus: I would like to set the number of commands in the history file as 50 rather than 25. It is neither of those. That is the default value of max.show, not of the size of the file. I would do this in the .First function. How do I set this, please? I tried history(max=50) and it prints what it has. Yes, but that is the number shown, not the number saved. You failed to follow the posting guide and tell us *anything* about your OS etc. But probably ?history tells you how to set the size of the history file via environment variable R_HISTSIZE. I just want to set the size in .First. Thanks in advance, Sincerely, Edna __ 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. PLEASE do. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ 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.