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) or

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... to the

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 a

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

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

2008-04-07 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 to

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

2008-04-07 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.

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

2008-04-07 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

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

2008-04-07 Thread Hans W. Borchers
Tribo Laboy tribolaboy at 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

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' After checking

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(mypkg) : there is no package

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(list=c(f,g,d,e), name=mypkg)

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. I run

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. Unwillingly, because