Skip to content
Prev 345 / 15274 Next

General Question on learning R...

For an installed package (rather than source), the R-ex/ directory contains
the code in the Example section of help pages; e.g., if you run
example(somefun), the code in somefun-ex.R is source()'ed.

Stuff in the demo/ directory are executed by the demo() function, and it's
optional:  Most packages do not have demo code.

Andy