[R] [R-pkgs] roxygen2

2011-07-24 Thread Peter Danenberg
Hadley Wickham refactored roxygen, making it more maintainable and robust; the changes are so significant that we decided to nominate it roxygen2: http://cran.r-project.org/web/packages/roxygen2/index.html Some highlights: * it's faster; * usage has been improved (the @usage tag should be

[R] snow: hierarchical parallelization

2010-07-22 Thread Peter Danenberg
I'm parallelizing some computation on hierarchical data, and would find it natural to do something like this (where a call to parLapply is embedded in outer call to parLapply): cl <- makeCluster(rep.int('localhost', 5), type='SOCK') clusterExport(cl, 'cl') parLapply(cl,

Re: [R] Rsge: recursive parallelization

2010-04-12 Thread Peter Danenberg
Quoth Martin Morgan on Boomtime, the 29th of Discord: > It seems like it would be hard to think about the tasks that are > being executed, how many processes there are, how load balancing > works, etc. A flat representation of our nested data is, alas, too large to contain in memory; and dynamical

[R] Rsge: recursive parallelization

2010-04-09 Thread Peter Danenberg
In principle, I'd like to be able to do something like this: sge.parLapply(seq(10), function(x) parLapply(seq(x), function(x) x^2)) In practice, however, I have to resort to acrobatics like this: sge.options(sge.remove.files=FALSE) sge.options(sge.qsub.options='-cwd -V') sge.parLapply(se

Re: [R] Defective help pages

2010-02-28 Thread Peter Danenberg
> We don't support Cygwin builds; that could be part of your problem. The > only supported builds on Windows are using MinGW. Ah; indeed, that /is/ the problem. Works fine from MinGW. If I have some time, maybe I can investigate and submit a patch. __

Re: [R] Defective help pages

2010-02-28 Thread Peter Danenberg
> As of R 2.10.0, the plain text is generated by the tools::Rd2txt function > from the same source as the HTML, i.e. the parsed Rd files stored in the > .rdb file in the package help directories. > > It looks as though ESS is the problem here, but I don't really know what it > is doing that coul

Re: [R] Defective help pages

2010-02-26 Thread Peter Danenberg
> This seems to be plain text help, right? It is. > Does the html version give the same result? Interestingly, the html seems to be whole; but it's less convenient to access from ESS, though. Do you know what program generates the plain text; and are there any options that govern where R looks

[R] Defective help pages

2010-02-24 Thread Peter Danenberg
I'm trying to diagnose a bizarre problem in which the help files invoked from R are partially defective. help(), for instance, is missing the Description, Arguments and See Also sections; as are help files for other commands (see below). I've built 2.8.1, 2.10.1 and HEAD with the same results; do

[R] ess-roxy: Roxygen support for ESS

2010-01-16 Thread Peter Danenberg
We're pleased to announce that Henning Redestig finally implemented ESS support for Roxygen: http://www.metabolome.jp/download/ess-roxy/ess-roxy.el/view ess-roxy includes paragraph fill, hiding, template generation, etc. __ R-help@r-project.org maili

Re: [R] List of tags in roxygen and use for S4 classes?

2009-09-07 Thread Peter Danenberg
> > I would also wish for a better (online) documentation, as I think the > > general idea of roxygen is great. > > I agree completely. Good call; the vignette is terse and outdated. Manuel and I are in the process of preparing a paper based on our DSC talks; that should fill in some of the detai

[R] Chrooted R + Rserve

2008-02-03 Thread Peter Danenberg
I successfully chrooted R running Rserve with an unprivileged user, and thought I'd publish the process. Attached is a jailkit.ini for use with jailkit;* and a chroot/setuid wrapper, chwrap.c. To set up the chroot in, for instance, /var/R; perform: mkdir -v /var/R jk_init -v -c jailkit.ini

Re: [R] how to google search for "R"

2008-01-21 Thread Peter Danenberg
Quoth ronggui on Boomtime, Chaos 22, 3174: > Have you tried http://www.rseek.org/ ? That's great, ronggui; looks like they do some things I tried on an ad-hoc basis: * site:r-project.org * filetype:r * etc. but save a lot of typing. Thanks. _

Re: [R] how to google search for "R"

2008-01-21 Thread Peter Danenberg
Quoth Wensui Liu on Boomtime, Chaos 22, 3174: > I really have headache when I do google search for information about > "R". Adding `site:r-project.org' (no quotes) will get you official docs, `site:stat.ethz.ch' will get the mailing lists; for instance: site:r-project.org markov chain or:

Re: [R] Urgent : About R and 4D

2008-01-16 Thread Peter Danenberg
Quoth HAILE A. on Sweetmorn, Chaos 16, 3174: > Is it possible to interface R with 4D? > Thank you very much for a fast answer. Like the Law of Fives, it depends very much on the ingenuity of the user; how's that for a fast answer? __ R-help@r-project.or

Re: [R] is it safe to replace every "<-" by "=" in R code?

2008-01-13 Thread Peter Danenberg
Quoth Mark Wardle on Prickle-Prickle, Chaos 14, 3174: > I can see that f(b <- 10) is equivalent to f(assign("b"), 10)) f(assign("b", 10))? My undestanding is that assign applies to the parental environment; but the return value of assign, namely 10, is passed to f as the local variable a. The de

Re: [R] Row-Echelon Form

2007-09-14 Thread Peter Danenberg
> I append the function below, along with some other simple > linear-algebra functions. I never thanked you, by the way, John; have you considered incurring the overhead of producing a formal R package? Otherwise, it's worth its SLOC in gold. __ R-help