Re: [Rd] Jazzing up the Task Views index page

2012-02-21 Thread Yihui Xie
Actually I was also thinking about the R homepage last time when Barry brought up this task view issue. The R website seems like an extreme outlier among websites of many other programming languages. It is so difficult to find another website today which still uses , and the whole site is almost pl

[Rd] prior.weights and weights()

2012-02-21 Thread Ben Bolker
I'm wondering whether anyone has any insight into why the 'simulate' methods for the built-in glm() families (binomial, Poisson, Gamma ...) extract the prior weights using object$prior.weights rather than weights(object,"prior") ? At first I thought this was so that things work correctly when e

Re: [Rd] tempdir() documentation or real bug ?

2012-02-21 Thread Simon Urbanek
On Feb 21, 2012, at 2:20 PM, Brian G. Peterson wrote: > ?tempdir says > > By default, ‘tmpdir’ will be the directory given by ‘tempdir()’. > This will be a subdirectory of the temporary directory found by > the following rule. The environment variables ‘TMPDIR’, ‘TMP’ and > ‘TEMP’ a

[Rd] tempdir() documentation or real bug ?

2012-02-21 Thread Brian G. Peterson
?tempdir says By default, ‘tmpdir’ will be the directory given by ‘tempdir()’. This will be a subdirectory of the temporary directory found by the following rule. The environment variables ‘TMPDIR’, ‘TMP’ and ‘TEMP’ are checked in turn and the first found which points to a wri

[Rd] Loading externally created LIBSVM model into R.

2012-02-21 Thread yindalon
I used the c binary svm-train in LIBSVM to create a model file. How do I load this model file into R? Is there a function in R package e1071 that accomplishes this operation? Thanks, Yin -- View this message in context: http://r.789695.n4.nabble.com/Loading-externally-created-LIBSVM-model-into-

Re: [Rd] Why cant my S4 class have a slot named `C`?

2012-02-21 Thread Steve Lianoglou
Hi, On Tue, Feb 21, 2012 at 11:54 AM, Martin Morgan wrote: [snip] > Hi Steve -- > > args(new) shows that new has a single named argument Class. R's rules of > partial matching mean that C matches Class before the unnamed "SVM", as in > >  f = function(XXX=1, ...) XXX >  f(2, X=3) # returns 3 > >

Re: [Rd] Why cant my S4 class have a slot named `C`?

2012-02-21 Thread Martin Morgan
On 02/21/2012 08:13 AM, Steve Lianoglou wrote: Hi all, This feature was throwing me for a loop for quite some time until I played with the names of the slots. Consider exhibit A: == setClass("SVM", representation=representation( x='numeric', y='num

[Rd] Why cant my S4 class have a slot named `C`?

2012-02-21 Thread Steve Lianoglou
Hi all, This feature was throwing me for a loop for quite some time until I played with the names of the slots. Consider exhibit A: == setClass("SVM", representation=representation( x='numeric', y='numeric', C='numeric', eps='numer

Re: [Rd] Jazzing up the Task Views index page

2012-02-21 Thread Berend Hasselman
On 21-02-2012, at 13:58, Barry Rowlingson wrote: > A little while ago here we had a short discussion about Task Views - I > think ignited by someone saying 'how many times do I have to say "have > you read the Optimisation Task View?"?' and I poured some fuel on that > fire by saying "Task Views"

Re: [Rd] Jazzing up the Task Views index page

2012-02-21 Thread Yihui Xie
Must be a big "posterior"... I especially love this pun. Regards, Yihui On Tuesday, February 21, 2012, Ben Bolker wrote: > Barry Rowlingson lancaster.ac.uk> writes: > >> Anyway, I did say that Task Views were rather brilliant, but were let >> down by their hidden position on the R web sites (tu

Re: [Rd] Jazzing up the Task Views index page

2012-02-21 Thread Hadley Wickham
> Anyway, I did say that Task Views were rather brilliant, but were let > down by their hidden position on the R web sites (tucked away as the > third element of a sub-menu of a CRAN mirror site linked to by the > CRAN link from the Download menu on the main R home page). The index > page is rather

Re: [Rd] Jazzing up the Task Views index page

2012-02-21 Thread Hadley Wickham
> o While this is good for distributing web services, it limits the > possibilities in terms of web design. In think that the CRAN maintainers do > not use Javascript, for example. Did you try it without js? The jquery masonry plugin should have ok fall-back behaviour if JS is disabled. (Althoug

Re: [Rd] Jazzing up the Task Views index page

2012-02-21 Thread Achim Zeileis
Barry, thanks for the ideas and the suggestion of a more interesting title page for the task views. Just a few comments from me as the person coordinating the task views on CRAN: o The design of CRAN task view presentation/installation was chosen to be parallel to CRAN package presentation/i

Re: [Rd] Jazzing up the Task Views index page

2012-02-21 Thread Ben Bolker
Barry Rowlingson lancaster.ac.uk> writes: > Anyway, I did say that Task Views were rather brilliant, but were let > down by their hidden position on the R web sites (tucked away as the > third element of a sub-menu of a CRAN mirror site linked to by the > CRAN link from the Download menu on the m

[Rd] Private Variables in R5-Classes possible?

2012-02-21 Thread Claus Jonathan Fritzemeier
Hi list, is there a way to define some kind of private Variable? I would like to prevent the user from manipulating fields on his own, in order to not destroy data structures. The problem is, that as soon as the variable exists in the environment it is accessible via t$secret_value. test <

Re: [Rd] portable parallel seeds project: request for critiques

2012-02-21 Thread Petr Savicky
On Fri, Feb 17, 2012 at 02:57:26PM -0600, Paul Johnson wrote: > I've got another edition of my simulation replication framework. I'm > attaching 2 R files and pasting in the readme. > > I would especially like to know if I'm doing anything that breaks > .Random.seed or other things that R's paral

[Rd] Jazzing up the Task Views index page

2012-02-21 Thread Barry Rowlingson
A little while ago here we had a short discussion about Task Views - I think ignited by someone saying 'how many times do I have to say "have you read the Optimisation Task View?"?' and I poured some fuel on that fire by saying "Task Views" was a stupid name. Anyway, I did say that Task Views were