Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-08 Thread Martin Maechler
> "TL" == Tribo Laboy <[EMAIL PROTECTED]> > on Tue, 8 Apr 2008 22:15:13 +0900 writes: TL> okey-dokey, one more problem resolved. TL> Keeping one documentation .Rd file for each R source file. not at all ... you still think "Matlab" One R source file typically contains severa

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-08 Thread Tribo Laboy
okey-dokey, one more problem resolved. Keeping one documentation .Rd file for each R source file. Thanks! TL __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/post

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-08 Thread Duncan Murdoch
On 08/04/2008 7:08 AM, Tribo Laboy wrote: > Thanks all for the help and suggestions. I am little by little finding > my way. I have another question to the people who use the R packaging > system. Say I have a function called "myfun.R". I guess you mean you have a source file myfun.R, containing

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-08 Thread Duncan Murdoch
Yesterday I wrote: > I took a look at this today. You get an error message but the package > is still installed without the CHM compiler, so that's less urgent. > > I did add a menu entry to install a source package from a directory: > > Packages | Install source package from local folder... > >

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-08 Thread Uwe Ligges
Tribo Laboy wrote: > Thanks all for the help and suggestions. I am little by little finding > my way. I have another question to the people who use the R packaging > system. Say I have a function called "myfun.R". Where am I supposed to > write the help to that function? When I use promt("myfun")

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-08 Thread Tribo Laboy
Thanks all for the help and suggestions. I am little by little finding my way. I have another question to the people who use the R packaging system. Say I have a function called "myfun.R". Where am I supposed to write the help to that function? When I use promt("myfun") or package.skeleton("myfun")

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-08 Thread Tribo Laboy
Hi Duncan and list I hope it is clear from my previous mails, but to make it sure again, I am talking about R on Windows. So here's what I did. I installed the Rtools on my home machine last night, then copied the files and moved them to my work machine today. I set up the PATH environment variabl

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread Duncan Murdoch
On 07/04/2008 11:51 AM, Tribo Laboy wrote: > On Mon, Apr 7, 2008 at 11:09 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> On 4/7/2008 9:33 AM, Tribo Laboy wrote: >> ... >> >> >>> Hi Duncan, >>> >>> >>> Thanks for your reply. I checked the Rtools and the other relevant >>> tools. I will most prob

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread Tribo Laboy
On Mon, Apr 7, 2008 at 11:09 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 4/7/2008 9:33 AM, Tribo Laboy wrote: > ... > > > > Hi Duncan, > > > > > > Thanks for your reply. I checked the Rtools and the other relevant > > tools. I will most probably install them, although unwillingly. > > Unwi

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread Duncan Murdoch
On 4/7/2008 9:33 AM, Tribo Laboy wrote: ... > Hi Duncan, > > > Thanks for your reply. I checked the Rtools and the other relevant > tools. I will most probably install them, although unwillingly. > Unwillingly, because I like my current setup very much, which is a > portable installation of R.

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread Tribo Laboy
On Mon, Apr 7, 2008 at 8:02 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > Tribo Laboy wrote: > > > Hi Simon, > > > > I did the example given in package.skeleton > > > > f <- function(x,y) x+y > > g <- function(x,y) x-y > > d <- data.frame(a=1, b=2) > > e <- rnorm(1000) > > > > package.skeleton(li

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread Duncan Murdoch
Tribo Laboy wrote: > Hi Simon, > > I did the example given in package.skeleton > > f <- function(x,y) x+y > g <- function(x,y) x-y > d <- data.frame(a=1, b=2) > e <- rnorm(1000) > > package.skeleton(list=c("f","g","d","e"), name="mypkg") > > > then tried: > > library(mypkg) > > Error in library(myp

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread Tribo Laboy
Hi Simon, I did the example given in package.skeleton f <- function(x,y) x+y g <- function(x,y) x-y d <- data.frame(a=1, b=2) e <- rnorm(1000) package.skeleton(list=c("f","g","d","e"), name="mypkg") then tried: library(mypkg) Error in library(mypkg) : there is no package called 'mypkg' Aft

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread Hans W. Borchers
Tribo Laboy gmail.com> writes: > [...] > These seem to include among others Perl and compiler. But R is an > interpreted and cross-platform language, I don't understand the need > for additional platform specific tools just to call a user collection > of R-files. Anyone knows of a smooth introduct

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread mel
Tribo Laboy a écrit : > Hello, > I am new useR, I have written some functions, which I currently use by > "source"-ing them from the files. > That's OK, but when I my functions start counting in the tens and > hundreds I'd be glad to be able to type > "help.search("my_obscure_fun")" and get a sens

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-06 Thread Simon Blomberg
On Mon, 2008-04-07 at 15:13 +0900, Tribo Laboy wrote: > Hello, > > I am new useR, I have written some functions, which I currently use by > "source"-ing them from the files. > That's OK, but when I my functions start counting in the tens and > hundreds I'd be glad to be able to type > "help.search

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-06 Thread talepanda
Though R is indeed cross-platform language, how to build depends on the environment. This is case for most cross-platform software, library, etc. Basically cross-platform means cross-platform for users. When you build packages, you are not user but developer. Rtools will help you. http://www.mur

[R] How to pack my stuff into a package (library, collection)?

2008-04-06 Thread Tribo Laboy
Hello, I am new useR, I have written some functions, which I currently use by "source"-ing them from the files. That's OK, but when I my functions start counting in the tens and hundreds I'd be glad to be able to type "help.search("my_obscure_fun")" and get a sensible reply. I also want to be able