Re: [R] licensing of R packages

2008-11-14 Thread Carlos Ungil
Duncan Murdoch-2 wrote: > > The way to lose a GPL lawsuit is to incorporate GPL'd code into your own > project, and then not follow the GPL when you redistribute. There's > evidence of that. > > But I've never heard of anyone linking to but not distributing GPL'd > code and being sued for i

Re: [R] licensing of R packages

2008-11-14 Thread Carlos Ungil
Barry Rowlingson wrote: > > This misconception of the license terms comes about because of the > use of the word 'use'. If I distribute a short C program that has a > call in it to a function that has the same name as something in the > GSL, does my C program use the GSL? No. Maybe it _mentions_

Re: [R] licensing of R packages

2008-11-14 Thread Carlos Ungil
Prof Brian Ripley wrote: > > I'm not going into the original question except to point out that R is > licensed under GPL-2 and the quote was from the GPL-3 FAQ. As FSF > themselves insist, the two licences are incompatible. > Let me quote the corresponding section in the GPL2 FAQ, then: ht

[R] licensing of R packages

2008-11-14 Thread Carlos Ungil
I know the standard answer to this kind of question is "get legal advice from a lawyer", but I would like to hear the (hopefully informed) opinion of other people. I would say that, according to the FSF's interpretation of the GPL, any R code using GPL packages can be distributed legally only usi

[R] van der Corput sequences

2008-05-23 Thread Carlos Ungil
Alberto, I think the functions below do what you want: > vanDerCorput(12,6) [1] 0.1667 0. 0.5000 0.6667 0.8333 0.0278 [7] 0.1944 0.3611 0.5278 0.6944 0.8611 0.0556 Regards, Carlos number2digits=function(n,base){ #first digit in output is