Vera, Graciela : Insurance Services (BISCO)
2006-Mar-13 09:27 UTC
[R] FW: RE: .First functin
_____ From: Vera, Graciela : Insurance Services (BISCO) Sent: 10 March 2006 14:47 To: 'r-help-request@stat.math.ethz.ch' Subject: RE: .First functin I have not used R for some time. Please accept my apologies if my question has an obvious answer. I am trying to use R. For convenience and due to IT restrictions libraries additional to MASS have been stored in a different directory to R's. My initial attempt has not produced the results expected and would appreciate some help. I would also like to include in function .First commands to read the data, store the results and graphs. For this the addresses would need to be different to the library address. .First <- function() { options(prompt="$ ", continue="+\t") # $ is the prompt options(digits=5, length=999) # custom numbers and printout x11() # for graphics par(pch = "+") # plotting character source(file.path("U:\WORKAREA\R\Library\Bayesian_inf_Marketing")) # my personal functions library(bayesm) library(MASS) # attach a package } Many thanks. Graciela This e-mail and any attachments are confidential and intende...{{dropped}}
Vera, Graciela : Insurance Services (BISCO) wrote:> > > > > _____ > > From: Vera, Graciela : Insurance Services (BISCO) > Sent: 10 March 2006 14:47 > To: 'r-help-request at stat.math.ethz.ch' > Subject: RE: .First functin > > > > I have not used R for some time. Please accept my apologies if my question > has an obvious answer. I am trying to use R. For convenience and due to IT > restrictions libraries additional to MASS have been stored in a different > directory to R's. My initial attempt has not produced the results expected > and would appreciate some help. > > > > I would also like to include in function .First commands to read the data, > store the results and graphs. For this the addresses would need to be > different to the library address.See ?.libPaths> > > .First <- function() { > > options(prompt="$ ", continue="+\t") # $ is the prompt > > options(digits=5, length=999) # custom numbers and printoutWhat is option "length" doing? I do not know it.> x11() # for graphics>> par(pch = "+") # plotting character > > source(file.path("U:\WORKAREA\R\Library\Bayesian_inf_Marketing"))So we are on Windows? Please see the R for Windows FAQs how to specify paths. Uwe Ligges> # my personal functions > > library(bayesm) > > library(MASS) # attach a package > > } > > > > Many thanks. > > > > Graciela > > > This e-mail and any attachments are confidential and intende...{{dropped}} > > ______________________________________________ > 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
On Mon, 13 Mar 2006, Uwe Ligges wrote: [...]> Vera, Graciela : Insurance Services (BISCO) wrote: >[...]>> options(digits=5, length=999) # custom numbers and printout > > What is option "length" doing? I do not know it.It exists in S, and is the page length (in lines). In S, print() formats output a page at a time. -- Brian D. Ripley, ripley at stats.ox.ac.uk 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, UK Fax: +44 1865 272595