Re: [R] several functions in one *.R file in a R package

2011-09-08 Thread Duncan Murdoch
On 11-09-08 5:28 AM, Jannis wrote: Thanks, Duncan, for your reply. You are right, the () in my code are not correct. Maybe my problem is that I do not really understand the exact effect of this dot . I have no tried with the following file in my /R folder in the package: mainfunction<- function

Re: [R] several functions in one *.R file in a R package

2011-09-08 Thread Jannis
Thanks, Duncan, for your reply. You are right, the () in my code are not correct. Maybe my problem is that I do not really understand the exact effect of this dot . I have no tried with the following file in my /R folder in the package: mainfunction<- function(x) { x2 <- .subfunction1(x)

Re: [R] several functions in one *.R file in a R package

2011-09-06 Thread Duncan Murdoch
On 11-09-06 10:26 AM, Jannis wrote: Dear list members, i have build a package which contains a collection of my frequently used functions. To keep the code organized I have broken down some rather extensive and long functions into individual steps and bundled these steps in sub-functions tha

[R] several functions in one *.R file in a R package

2011-09-06 Thread Jannis
Dear list members, i have build a package which contains a collection of my frequently used functions. To keep the code organized I have broken down some rather extensive and long functions into individual steps and bundled these steps in sub-functions that are called inside the main function.