search for: creatingpackag

Displaying 16 results from an estimated 16 matches for "creatingpackag".

Did you mean: creatingpackages
2009 Oct 26
2
What is the most efficient practice to develop an R package?
I am reading Section 5 and 6 of http://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf It seems that I have to do the following two steps in order to make an R package. But when I am testing these package, these two steps will run many times, which may take a lot of time. So when I still develop the package, shall I always source('linmod.R') to test it. Once the code i...
2017 Sep 14
2
To implement OO or not in R package, and if so, how to structure it?
> Did you read this? > https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf > > Maybe it could give you some insight in how to create package. That resource is ~9 years old. There are more modern treatments available. You can read mine at http://r-pkgs.had.co.nz. Hadley -- http://hadley.nz
2017 Sep 14
1
To implement OO or not in R package, and if so, how to structure it?
>>> Did you read this? >>> https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf >>> >>> Maybe it could give you some insight in how to create package. >> >> That resource is ~9 years old. There are more modern treatments available. You >> can read mine at http://r-pkgs.had.co.nz. >> >> Hadley >> Thanks both. I'm...
2018 Jan 30
4
Best practices in developing package: From a single file
...ot of material out here, though lots of this material seems to be entirely ignorant of what came before it. And there has been lots, including Fritz's tutorial from a decade ago: https://epub.ub.uni-muenchen.de/6175/ as well as on CRAN as https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf So I'd recommend you just experiment and set up your own helpers. After all the rule still holds: Anything you do more than three times should be a function, and every function should be in a package. So customize _your_ function to create your package. Dirk -- http://dirk.eddelbuette...
2017 Sep 14
0
To implement OO or not in R package, and if so, how to structure it?
...at precheza.cz> > Cc: Alexander Shenkin <ashenkin at ufl.edu>; r-help <r-help at r-project.org> > Subject: Re: [R] To implement OO or not in R package, and if so, how to > structure it? > > > Did you read this? > > https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf > > > > Maybe it could give you some insight in how to create package. > > That resource is ~9 years old. There are more modern treatments available. You > can read mine at http://r-pkgs.had.co.nz. > > Hadley > > > -- > http://hadley.nz ________________...
2017 Sep 14
0
To implement OO or not in R package, and if so, how to structure it?
Hi I do not consider myself as an expert in field of R package programming but if your data are rectangular, why not use data.frames. OTOH if they are structured in free form (something like lm result) you could use lists. Did you read this? https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf Maybe it could give you some insight in how to create package. Cheers Petr > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Alexander > Shenkin > Sent: Thursday, September 14, 2017 2:59 PM > To: r-help <r-help at r-project....
2018 Mar 15
3
hacer un paquete en R
...la función load de la siguiente forma: load("misfunciones.r") Un saludo El jue., 15 mar. 2018 18:26, Freddy Omar López Quintero < freddy.lopez.quintero en gmail.com> escribió: > Hola. > > Algunas fuentes son: > > 1. https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf > 2. > https://support.rstudio.com/hc/en-us/articles/200486488-Developing-Packages-with-RStudio > 3. https://www.youtube.com/watch?v=9PyQlbAEujY > 4. > https://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/ > > ordenadas según el top de búsq...
2018 Mar 15
2
hacer un paquete en R
Hola a todos: Tengo un modelo que logré construir en R. Sin embargo, me gustaría que dicho modelo pusiese funcionar como un paquete de R, en el sentido que todas los pasos y fórmulas estén contenidas en un solo "paquete" y no como está desplegada ahora, en donde se observan casi sesenta líneas de código. Con el paquete sería más limpio el despliegue del modelo. Alguien ha construido un
2017 Sep 14
3
To implement OO or not in R package, and if so, how to structure it?
Hello all, I am trying to decide how to structure an R package. Specifically, do I use OO classes, or just provide functions? If the former, how should I structure the objects in relation to the type of data the package is intended to manage? I have searched for, but haven't found, resources that guide one in the *decision* about whether to implement OO frameworks or not in one's R
2018 Jan 31
0
Best practices in developing package: From a single file
...lots of this material seems to be entirely ignorant > of what came before it. > > And there has been lots, including Fritz's tutorial from a decade ago: > > https://epub.ub.uni-muenchen.de/6175/ as well as on CRAN as > https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf > > So I'd recommend you just experiment and set up your own helpers. After all > the rule still holds: Anything you do more than three times should be a > function, and every function should be in a package. So customize _your_ > function to create your package. > &gt...
2012 Nov 29
3
Help
Help Please Hello, I want to find the whole hat matrix not only the hat values. Is there anyway that could be extracted from lm function ?. If not, please suggest something else. Direct computations using chol2inv or solve are not stable if t(X)%*%X has  high determinant. In this case lm is still able to produce correct fitted values, hat_value, residuals...etc but direct computations fail to do
2018 Jan 30
0
Best practices in developing package: From a single file
...ots of this material seems to be entirely > ignorant > of what came before it. > > And there has been lots, including Fritz's tutorial from a decade ago: > > https://epub.ub.uni-muenchen.de/6175/ as well as on CRAN as > https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf > > So I'd recommend you just experiment and set up your own helpers. After all > the rule still holds: Anything you do more than three times should be a > function, and every function should be in a package. So customize _your_ > function to create your package. > >...
2012 Feb 03
3
creating R package
Hi, I never acutally made a package before. I have a folder, say called "john" that has everything it needs to be in a R package. Some instruction says I need Rtools from R mirror site. I installed the Rtools, but under DOS, the command "Rcmd" is still not recognized. Any suggestions? Thanks John
2012 Jul 20
4
Paquetización
Buenos días: Por favor, ¿alguien puede indicarme si sólo hay que documentar las funciones visibles del paquete?. Además, ¿cómo se consigue que sólo algunas de las funciones estén visibles?. ¿Cómo manejo el namespaces para ello?. Gracias. Eva [[alternative HTML version deleted]]
2018 Jan 31
2
Best practices in developing package: From a single file
...be entirely >> ignorant >> of what came before it. >> >> And there has been lots, including Fritz's tutorial from a decade ago: >> >> https://epub.ub.uni-muenchen.de/6175/ as well as on CRAN as >> https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf >> >> So I'd recommend you just experiment and set up your own helpers. After all >> the rule still holds: Anything you do more than three times should be a >> function, and every function should be in a package. So customize _your_ >> function to create your...
2018 Jan 30
7
Best practices in developing package: From a single file
On 30/01/2018 11:29 AM, Brian G. Peterson wrote: > On Tue, 2018-01-30 at 17:00 +0100, Suzen, Mehmet wrote: >> Dear R developers, >> >> I am wondering what are the best practices for developing an R >> package. I am aware of Hadley Wickham's best practice >> documentation/book (http://r-pkgs.had.co.nz/).??I recall a couple of >> years ago there were some