[R] Summarizing R script

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Wed Sep 26 17:28:50 CEST 2018


On 26/09/2018 10:24 AM, Spencer Graves wrote:
> 
> 
>         It depends on what you want, but I've found it very useful to
> create packages and submitting them to CRAN.  See "Creating R Packages"
> for how to do that.[1]  Part of this involves creating vignettes using
> Rmarkdown within RStudio.  Creating R packages and routinely running "R
> CMD check" sounds like it would take extra time.  My experience has been
> very much the opposite, because it dramatically reduces the bugs in my
> software and makes it vastly easier to find the bugs that still exist.
> AND I have something I can just hand to others, and they can use it.
> That would be exceedingly difficult otherwise.

I think that's very good advice.  Even if the R script is something not 
suitable for publication on CRAN (containing proprietary data, or 
solving one unique problem, for example), preparing it as though for 
submission there enforces some good coding and documentation practices.

Duncan Murdoch

> 
> 
>         And there are publications like "R Journal" that are looking for
> descriptions of what you've done.  I have a paper in "R Journal"
> describing the "sos" package;  that article is a vignette in that
> package.  This process has worked for me.[2]
> 
> 
>          Spencer
> 
> 
> [1] Available from help.start().  See also
> "https://cran.r-project.org/doc/manuals/r-release/R-exts.html".
> 
> 
> [2] The "sos" package is the fastest literature search I know for
> anything statistical.  It's availability on CRAN combined with the R
> Journal article got me invited to help organize a plenary session on
> "Navigating the R Package Universe" at the useR!2017 conference in
> Brussels last year.  This is an example of how creating an R package
> with a vignette has helped me find an audience.
> 
> 
> On 2018-09-26 09:06, Roger Koenker wrote:
>> I use R CMD BATCH foo which produces a file called foo.Rout and provided the script includes
>> sessionInfo() constitutes a quite sufficient summary for my purposes, it isn’t exactly pretty, but it
>> is informative.
>>
>>> On Sep 26, 2018, at 3:00 PM, Spencer Brackett <spbrackett20 using saintjosephhs.com> wrote:
>>>
>>> R users,
>>>
>>>    Is anyone aware of the proper procedure for summarizing a script(your
>>> complete list of functions, arguments , and error codes within your R
>>> console for say a formal report or publication?
>>>
>>> Many thanks,
>>>
>>> Best wishes,
>>>
>>> Spencer Brackett
>>>
>>> ---------- Forwarded message ---------
>>> From: CHATTON Anne via R-help <r-help using r-project.org>
>>> Date: Wed, Sep 26, 2018 at 6:03 AM
>>> Subject: [R] Problems to obtain standardized betas in multiply-imputed data
>>> To: r-help using r-project.org <r-help using r-project.org>
>>>
>>>
>>> Dear all,
>>>
>>> I am having problems in obtaining standardized betas on a multiply-imputed
>>> data set. Here are the codes I used :
>>> imp = mice(data, 5, maxit=10, seed=42, print=FALSE)
>>> FitImp <- with(imp,lm(y ~ x1 + x2 + x3))
>>> Up to here everything is fine. But when I ask for the standardized
>>> coefficients of the multiply-imputed regressions using this command :
>>> sdBeta <- lm.beta(FitImp)
>>> I get the following error message:
>>> Error in b * sx : argument non numérique pour un opérateur binaire
>>>
>>> Can anyone help me with this please?
>>>
>>> Anne
>>>
>>> ______________________________________________
>>> R-help using 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.
>>>
>>> 	[[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help using 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.
>> ______________________________________________
>> R-help using 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.
> 
> ______________________________________________
> R-help using 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.
>




More information about the R-help mailing list