Hi Maybe this is not an issue about R. It's probably a programming issue and I am not a developer at all. Anyway my main developing activities are in R and that's where I have difficulties. When I develop a function or group of functions I lose eternities with the objects attributes and classes. I do a lot of object manipulation (lists to arrays, factors to numeric vectors, etc, etc) so that I can group data and apply the proper calculations/models to the proper data combination. Some times I get lost or need debugging and hell comes on earth. The objects names are unconsistent, the objects classes are not correct so methods work differently, etc. My question is about programming good pratices in R. Does anyone know about documents ? Do you use some project management software that help on the function structure ? Do you have any ideas ? How do you (the R gurus) develop your packages ? Thanks EJ
Hi Maybe this is not an issue about R. It's probably a programming issue and I am not a developer at all. Anyway my main developing activities are in R and that's where I have difficulties. When I develop a function or group of functions I lose eternities with the objects attributes and classes. I do a lot of object manipulation (lists to arrays, factors to numeric vectors, etc, etc) so that I can group data and apply the proper calculations/models to the proper data combination. Some times I get lost or need debugging and hell comes on earth. The objects names are unconsistent, the objects classes are not correct so methods work differently, etc. My question is about programming good pratices in R. Does anyone know about documents ? Do you use some project management software that help on the function structure ? Do you have any ideas ? How do you (the R gurus) develop your packages ? Thanks EJ
Hi Maybe this is not an issue about R. It's probably a programming issue and I am not a developer at all. Anyway my main developing activities are in R and that's where I have difficulties. When I develop a function or group of functions I lose eternities with the objects attributes and classes. I do a lot of object manipulation (lists to arrays, factors to numeric vectors, etc, etc) so that I can group data and apply the proper calculations/models to the proper data combination. Then comes debugging and hell comes on earth. The objects names are unconsistent, the objects classes are not correct so methods work differently, etc. My question is about programming good pratices in R. Does anyone know about documents (others than R manuals and MASS) ? Do you use some project management software that help on the function structure ? Do you have any ideas ? How do you (the R gurus) develop your packages ? Thanks EJ -- Ernesto Jardim <ernesto at ipimar.pt> Marine Biologist IPIMAR - National Research Institute for Agriculture and Fisheries Av. Brasilia, 1400-006 Lisboa, Portugal Tel: +351 213 027 000 Fax: +351 213 015 948 ernesto.freezope.org
1. Have you read Venables and Ripley's two books, "Modern Applied Statistics with S" (now in its 4th edition) and "S Programming"? Especially the latter book could help in this regard. 2. Which version of R are you using, under which operating system? With R 1.6.2 under Windows 2000, I can copy a "*.r" file into a new directory, double click, and have R open an empty ".RData" file in that directory. This is can be helpful for identifying globals that you thought were local to a particular function (e.g., misspelled variable names). Hope this helps. Spencer Graves Ernesto Jardim wrote:> Hi > > Maybe this is not an issue about R. It's probably a programming issue > and I am not a developer at all. Anyway my main developing activities > are in R and that's where I have difficulties. > > When I develop a function or group of functions I lose eternities with > the objects attributes and classes. I do a lot of object manipulation > (lists to arrays, factors to numeric vectors, etc, etc) so that I can > group data and apply the proper calculations/models to the proper data > combination. > > Some times I get lost or need debugging and hell comes on earth. The > objects names are unconsistent, the objects classes are not correct so > methods work differently, etc. > > My question is about programming good pratices in R. Does anyone know > about documents ? Do you use some project management software that help > on the function structure ? Do you have any ideas ? How do you (the R > gurus) develop your packages ? > > Thanks > > EJ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > stat.math.ethz.ch/mailman/listinfo/r-help