R-alpha: Rprofiles
Peter Dalgaard BSA
p.dalgaard@kubism.ku.dk
22 Apr 1997 18:23:24 +0200
The x11() window can be a nuisance to have popping up at startup (esp.
on small screens) when you're not working with graphics. However,
currently you can't get rid of it without modifying the systemwide
Rprofile.
Current logic is:
Run $RHOME/library/Rprofile
if ./.Rprofile exists
run it
else if $HOME/.Rprofile exists
run that
endif
I think it should be
Run $RHOME/library/Rsetup
if ./.Rprofile exists
run it
else if $HOME/.Rprofile exists
run that
else if $RHOME/library/Rprofile exists
run that
endif
i.e. essential system initialisation goes in Rsetup, the rest in
Rprofile, which can be overridden by the user. Currently, the line
if(interactive()) x11()
is the candidate to move from one to the other. BTW, it really should read
if(interactive() && getenv("DISPLAY")!="") x11()
[BTW2: getenv() implemented using system()? is that really necessary?]
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-