[R] Command Line Prompt Symbol
Bill.Venables at csiro.au
Bill.Venables at csiro.au
Fri Nov 10 07:46:10 CET 2006
The simplest way to do this is to put
options(prompt = "R> ")
in your .Rprofile file. If you don't have an .Rprifile file,
then persuading Windows to let you call a file by that name can
be frustrating. I suggest you delegate the job to R itself and
use something like this
---
wd <- getwd()
setwd(Sys.getenv("R_USER")) ## change working directories
cat('\noptions(prompt = "R> ")\n',
file = ".Rprofile", append = TRUE)
setwd(wd)
---
Putting the .Rprofile in the R_USER directory ensures that it
will be used prior to all invocations of R you make.
Bill Venables,
CMIS, CSIRO Laboratories,
PO Box 120, Cleveland, Qld. 4163
AUSTRALIA
Office Phone (email preferred): +61 7 3826 7251
Fax (if absolutely necessary): +61 7 3826 7304
Mobile (rarely used): +61 4 1963 4642
Home Phone: +61 7 3286 7700
mailto:Bill.Venables at csiro.au
http://www.cmis.csiro.au/bill.venables/
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jacob van Wyk
Sent: Friday, 10 November 2006 3:33 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Command Line Prompt Symbol
Hi
I run R in Windows.
Is there a simple way of changing the prompt symbol ">" to, say, "R>" ?
(Not just for a temporary session, but every time R command window is
opened.) The documentation of doing this is rather "sparse".
Much appreciated for your assistance.
Jacob
Jacob L van Wyk
Department of Statistics
University of Johannesburg, APK
P O Box 524
Auckland Park 2006
South Africa
Tel: +27 11 489 3080
Fax: +27 11 489 2832
[[alternative HTML version deleted]]
______________________________________________
R-help at stat.math.ethz.ch 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.
More information about the R-help
mailing list