[Rd] Loose code in R package files

From: Stephen Ellison <stephen.ellison_at_lgcgroup.com>
Date: Tue, 14 Jun 2011 15:24:31 +0100

I'm sure i've seen the answer to this, but can't find it:

If there is executable code in an R package .R file that does not return a function (that is, something like x <- rnorm(5), outside any function body ), what will actually happens at build and load time?

And (more importantly, so I can point a colleague to documented guidance on the matter) is there somewhere in R's docs that says why this is not likely to be a good idea and suggests the sort of things it is sensible - or not sensible - to include in .R files?

S Ellison



This email and any attachments are confidential. Any use...{{dropped:8}}

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 15 Jun 2011 - 11:30:21 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 15 Jun 2011 - 16:20:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive