[Rd] how to return a matrix of strings from c to R ?

2011-10-14 Thread Alok Jadhav
I am a bit confused about usage of R internal functions. I am able to send a char vector from C to R but not sure on how to send a vector of strings etc. My code looks like this. SEXP result = PROTECT(Rf_allocMatrix(STRSXP,s->n_rics,s->n_fields)); int i,j;

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Michael Friendly
On 10/13/2011 11:34 AM, Uwe Ligges wrote: I looked at the code and since this is not that trivial to change, I think we can well live with typing grep -r gplots ./man which is not too hard to run on the source package, I believe. Best wishes, Uwe Yes, that's quite easy, if I wanted to search

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Jari Oksanen
On Thu, 2011-10-13 at 17:34 +0200, Uwe Ligges wrote: > I looked at the code and since this is not that trivial to change, I > think we can well live with typing > > grep -r gplots ./man > > which is not too hard to run on the source package, I believe. > > Best wishes, > Uwe > Uwe & others, T

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Duncan Murdoch
On 14/10/2011 9:18 AM, Jari Oksanen wrote: On Thu, 2011-10-13 at 17:34 +0200, Uwe Ligges wrote: > I looked at the code and since this is not that trivial to change, I > think we can well live with typing > > grep -r gplots ./man > > which is not too hard to run on the source package, I believ

Re: [Rd] how to return a matrix of strings from c to R ?

2011-10-14 Thread Simon Urbanek
On Oct 13, 2011, at 3:20 AM, Alok Jadhav wrote: > I am a bit confused about usage of R internal functions. I am able to send a > char vector from C to R but not sure on how to send a vector of strings etc. > > My code looks like this. > > > >SEXP result = > PROTECT(Rf_allocMat

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Jari Oksanen
On 14/10/11 16:26 PM, "Duncan Murdoch" wrote: > On 14/10/2011 9:18 AM, Jari Oksanen wrote: >>> >> Uwe& others, >> >> This is OK if you want to identify the cause of the problems. However, >> the basic problem was that checking required something that is not >> required: there was one example

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Duncan Murdoch
On 14/10/2011 10:10 AM, Jari Oksanen wrote: On 14/10/11 16:26 PM, "Duncan Murdoch" wrote: > On 14/10/2011 9:18 AM, Jari Oksanen wrote: >>> >> Uwe& others, >> >> This is OK if you want to identify the cause of the problems. However, >> the basic problem was that checking required somethin

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Uwe Ligges
On 14.10.2011 16:15, Duncan Murdoch wrote: On 14/10/2011 10:10 AM, Jari Oksanen wrote: On 14/10/11 16:26 PM, "Duncan Murdoch" wrote: > On 14/10/2011 9:18 AM, Jari Oksanen wrote: >>> >> Uwe& others, >> >> This is OK if you want to identify the cause of the problems. However, >> the basic prob

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Jari Oksanen
On 14/10/11 19:00 PM, "Uwe Ligges" wrote: > > > On 14.10.2011 16:15, Duncan Murdoch wrote: >> On 14/10/2011 10:10 AM, Jari Oksanen wrote: >>> On 14/10/11 16:26 PM, "Duncan Murdoch" wrote: >>> On 14/10/2011 9:18 AM, Jari Oksanen wrote: >>> >> > Uwe& others, > > This is O

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Uwe Ligges
On 14.10.2011 18:52, Jari Oksanen wrote: On 14/10/11 19:00 PM, "Uwe Ligges" wrote: On 14.10.2011 16:15, Duncan Murdoch wrote: On 14/10/2011 10:10 AM, Jari Oksanen wrote: On 14/10/11 16:26 PM, "Duncan Murdoch" wrote: On 14/10/2011 9:18 AM, Jari Oksanen wrote: Uwe& others, This i

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Nick Sabbe
> > So other people from the administration tell you which software to use > for teaching? And what happens if they tell you only Excel is > available? > ... weird ... > On the contrary, I should say: very common. We have hardly any control over what is installed on the application servers at ou

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Uwe Ligges
On 14.10.2011 20:53, Nick Sabbe wrote: So other people from the administration tell you which software to use for teaching? And what happens if they tell you only Excel is available? ... weird ... On the contrary, I should say: very common. We have hardly any control over what is installed

[Rd] Creating a package skeleton with no flesh

2011-10-14 Thread Hervé Pagès
Hi, Wouldn't it be awesome if package.skeleton() could be used to produce, well... a package skeleton? In a fresh R session: > package.skeleton("mypkg") Error in !have : invalid argument type This (not very informative) error message seems to occur because I'm trying to create a skeleton wi

[Rd] .onLoad failing because could not find function "loadMethod"

2011-10-14 Thread Hervé Pagès
Hi, This strange warning happen sometimes when running 'R CMD check': * checking whether the package can be loaded with stated dependencies ... WARNING Error : .onLoad failed in loadNamespace() for ‘pkgB’, details: call: length(new("A")) error: could not find function "loadMethod"

Re: [Rd] .onLoad failing because could not find function "loadMethod"

2011-10-14 Thread Hervé Pagès
On 11-10-14 05:46 PM, Hervé Pagès wrote: [...] I've put 2 toy packages here that illustrate the problem: https://rapidshare.com/files/4043144391/pkgA_1.0.tar.gz https://rapidshare.com/files/1959508331/pkgB_1.0.tar.gz arghh, sorry for the broken links. I'll try to put those packages somewhere

Re: [Rd] .onLoad failing because could not find function "loadMethod"

2011-10-14 Thread Hervé Pagès
On 11-10-14 05:47 PM, Hervé Pagès wrote: On 11-10-14 05:46 PM, Hervé Pagès wrote: [...] I've put 2 toy packages here that illustrate the problem: https://rapidshare.com/files/4043144391/pkgA_1.0.tar.gz https://rapidshare.com/files/1959508331/pkgB_1.0.tar.gz arghh, sorry for the broken links

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Jari Oksanen
Hello folks, To get it short, I cut out most of the spurious controversy, and go to the key point (and it also helps to go to sauna and then sleep well all night): On 14/10/11 22:30 PM, "Uwe Ligges" wrote: > > Also note that the package would be accepted on CRAN as is, if you > declared "paral