Thorsten Jolitz
2013-Jun-11 15:06 UTC
[R] Big, complex, well-structured .R file for demonstration?
Hi List, I'm looking for a rather big, but well structured R file that contains as much of R language features as possible (i.e. that uses a lot of the functionality described in the 'R Reference Card' and, if possible, S4 classes too). I want to check some code I wrote against such a file and use it for demonstration purposes. However, most .R files I find out there are rather short without much structure. Any links to candidate (open source) files would be appreciated. -- cheers, Thorsten
Sarah Goslee
2013-Jun-11 20:11 UTC
[R] Big, complex, well-structured .R file for demonstration?
On Tue, Jun 11, 2013 at 11:06 AM, Thorsten Jolitz <tjolitz at gmail.com> wrote:> > Hi List, > > I'm looking for a rather big, but well structured R file that contains > as much of R language features as possible (i.e. that uses a lot of the > functionality described in the 'R Reference Card' and, if possible, S4 > classes too).http://cran.r-project.org/web/packages/ I might start with MASS, though I have no idea what "well structured" means to you.> I want to check some code I wrote against such a file and use it for > demonstration purposes. However, most .R files I find out there are > rather short without much structure.Your request doesn't make a whole lot of sense to me, but there are so many thousands of R files on CRAN that there's bound to be something that makes you happy. Sarah -- Sarah Goslee http://www.functionaldiversity.org
Greg Snow
2013-Jun-11 21:52 UTC
[R] Big, complex, well-structured .R file for demonstration?
Some would argue that "big" and "well structured" are not compatible. Part of structuring a project well is knowing when and how to break it into smaller pieces, so those authors who are best at creating well structured R code will often split it between several small files rather than one big file. On Tue, Jun 11, 2013 at 9:06 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:> > Hi List, > > I'm looking for a rather big, but well structured R file that contains > as much of R language features as possible (i.e. that uses a lot of the > functionality described in the 'R Reference Card' and, if possible, S4 > classes too). > > I want to check some code I wrote against such a file and use it for > demonstration purposes. However, most .R files I find out there are > rather short without much structure. > > Any links to candidate (open source) files would be appreciated. > > -- > cheers, > Thorsten > > ______________________________________________ > R-help@r-project.org mailing list > 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. >-- Gregory (Greg) L. Snow Ph.D. 538280@gmail.com [[alternative HTML version deleted]]