Hello, I would like to know if is possible to load functions developed by users of R. I have been working in a function related to calculate some indicators to develop a credit scoring. I would like to know about the procedure to load this function and create a package for this kind of subject, allowing everyone to get access to it. Best Regards, Francisco Andrés Rincón Consultor Asociado Neicon Consulting Group Ltda Consultoría Estadística Cel: 318-3642548 Bogotá D.C. - Colombia [[alternative HTML version deleted]]
There is a "how to make R packages" in the document section of the cran website. On Tue, Oct 13, 2009 at 3:07 PM, Andres Rincon <arincon at neiconcg.com> wrote:> Hello, I would like to know if is possible to load functions developed > by users of R. I have been working in a function related to calculate > some indicators to develop a credit scoring. I would like to know > about the procedure to load this function and create a package for > this kind of subject, allowing everyone to get access to it. > > Best Regards, > > Francisco Andr?s Rinc?n > Consultor Asociado > Neicon Consulting Group Ltda > Consultor?a Estad?stica > Cel: 318-3642548 > Bogot? D.C. - Colombia > > > > > > ? ? ? ?[[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
On 13/10/2009 4:07 PM, Andres Rincon wrote:> Hello, I would like to know if is possible to load functions developed > by users of R. I have been working in a function related to calculate > some indicators to develop a credit scoring. I would like to know > about the procedure to load this function and create a package for > this kind of subject, allowing everyone to get access to it.Yes, the procedure is described in full detail in the Writing R Extensions manual. There are various short tutorials around as well, e.g. the one I gave last year at the UseR! meeting: http://www.r-project.org/conferences/useR-2008/slides/Murdoch.pdf Duncan Murdoch> > Best Regards, > > Francisco Andr?s Rinc?n > Consultor Asociado > Neicon Consulting Group Ltda > Consultor?a Estad?stica > Cel: 318-3642548 > Bogot? D.C. - Colombia > > > > > > [[alternative HTML version deleted]] > > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
The easy way out is to send the file containing only the function to the people willing to use it. They can load the function from the file "foo.R" using : source ("path/foo.R") The hard way out is to write a package. For that, see : http://cran.r-project.org/doc/manuals/R-exts.html Cheers Joris On Tue, Oct 13, 2009 at 10:07 PM, Andres Rincon <arincon at neiconcg.com> wrote:> Hello, I would like to know if is possible to load functions developed > by users of R. I have been working in a function related to calculate > some indicators to develop a credit scoring. I would like to know > about the procedure to load this function and create a package for > this kind of subject, allowing everyone to get access to it. > > Best Regards, > > Francisco Andr?s Rinc?n > Consultor Asociado > Neicon Consulting Group Ltda > Consultor?a Estad?stica > Cel: 318-3642548 > Bogot? D.C. - Colombia > > > > > > ? ? ? ?[[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >