Re: [R] How to make own function load automatically on startup

2007-10-30 Thread Jonas Malmros
Thanks, Hans-Peter, But still, this is quite difficult to understand for non-initiated. What do expressions "exported variable" and "internal variable" mean? What is "name space"? In LAYMAN terms. Thanks in advance! On 10/29/07, Hans-Peter <[EMAIL PROTECTED]> wrote: > > > My code contains followi

Re: [R] How to make own function load automatically on startup

2007-10-29 Thread Hans-Peter
> > My code contains following snippet: "xlsReadWrite::read.xls", this is > because another package I load masks read.xls function and :: help me > to select correct read.xls. I guessed this use of :: but I would > really like to know what :: is and where can I read more about this > function? >

Re: [R] How to make own function load automatically on startup

2007-10-27 Thread Gabor Csardi
Jonas, if you want the function to load really automatically, without running source of anything, read ?Startup Basically you need to create an .Rprofile file (its location depends on your operating system) containing the R code you want to run at startup. Gabor On Sat, Oct 27, 2007 at 08:37:

Re: [R] How to make own function load automatically on startup

2007-10-27 Thread Katharine Mullen
Regarding your first issue: you could make a package to contain your function (see ?package.skeleton and the manual "Writing R extensions") - then you could use library(yourpackagename). Or you could save the definition of your function(s) in a text file, and use source("textfilename") to load the

[R] How to make own function load automatically on startup

2007-10-27 Thread Jonas Malmros
Dear list members, I have written a function, called say Analysis. I supply an Excel file name as an argument, it does analysis on this file and returns a pdf file with specific plots, and a text file with several statistical models' output (I extract certain values from the output and create my o