Hello everyone: I'm starting to write a package from scratch; having done that in ages. My opinion question: what is the best way, please: Should I use R studio, please? Back in the back, I used package.skeleton, or just copied over other people's stuff. But I want to do a nice clean one from the beginning. For the record, I will have S4 classes. And I'm sure I will get many differing answering, but that's good too! Sort of like those "if you put 1000 statisticians end to end" jokes. Thanks in advance, Have a great weekend, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
Roy Mendelssohn - NOAA Federal
2016-Jul-08 19:05 UTC
[R] a package-building opinion question, please
Hi Erin: Everyone's tastes differ, but when I started out knowing nothing about packages, I found Hadley's guide (thank you Hadley!!!) indispensable: http://r-pkgs.had.co.nz/intro.html For obvious reasons, his guide really is geared to built-in features of RStudio, though I believe you could do the same things without it. It is just easier to do the steps he describes from within RStudio. HTH, -Roy> On Jul 8, 2016, at 11:53 AM, Erin Hodgess <erinm.hodgess at gmail.com> wrote: > > Hello everyone: > > I'm starting to write a package from scratch; having done that in ages. > > My opinion question: what is the best way, please: Should I use R studio, > please? Back in the back, I used package.skeleton, or just copied over > other people's stuff. But I want to do a nice clean one from the beginning. > > For the record, I will have S4 classes. > > And I'm sure I will get many differing answering, but that's good too! > > Sort of like those "if you put 1000 statisticians end to end" jokes. > > Thanks in advance, > Have a great weekend, > Sincerely, > Erin > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodgess at gmail.com > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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 contents of this message do not reflect any position of the U.S. Government or NOAA." ********************** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center ***Note new address and phone*** 110 Shaffer Road Santa Cruz, CA 95060 Phone: (831)-420-3666 Fax: (831) 420-3980 e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/ "Old age and treachery will overcome youth and skill." "From those who have been given much, much will be expected" "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
I would suggest Hadley's guide as Roy. Life is easier by shortcuts that RStudio has. Especially in package development stage. You can run your test by <cmd + Shit + T> or build your package by <cmd + shift + B> on the go. When it comes to package development, these are life saving.> On 08 Jul 2016, at 22:05, Roy Mendelssohn - NOAA Federal <roy.mendelssohn at noaa.gov> wrote: > > Hi Erin: > > Everyone's tastes differ, but when I started out knowing nothing about packages, I found Hadley's guide (thank you Hadley!!!) indispensable: > > http://r-pkgs.had.co.nz/intro.html > > > For obvious reasons, his guide really is geared to built-in features of RStudio, though I believe you could do the same things without it. It is just easier to do the steps he describes from within RStudio. > > HTH, > > -Roy >