Re: [Rd] \dQuote{} in \code{} not processed

2005-11-30 Thread Gavin Simpson
On Thu, 2005-12-01 at 07:14 +, Prof Brian Ripley wrote: > On Wed, 30 Nov 2005, Gavin Simpson wrote: > > > Just wondering if this is the expected behaviour. > > Yes. The only command processed inside \code is \link (plus support for > \example and \usage which go through the same processing)

Re: [Rd] \dQuote{} in \code{} not processed

2005-11-30 Thread Prof Brian Ripley
On Wed, 30 Nov 2005, Gavin Simpson wrote: > Just wondering if this is the expected behaviour. Yes. The only command processed inside \code is \link (plus support for \example and \usage which go through the same processing). > I was wanting to produce quoted text within \code{}, without manua

[Rd] [ANN] bash completion for R

2005-11-30 Thread Deepayan Sarkar
[This is of potential interest primarily to bash users and R package developers (hence the posting to r-devel only). Others, feel free to ignore.] I have been using bash's command completion features [1] for a while now, to the point where I expect everything to just work when I hit TAB. Since

[Rd] \dQuote{} in \code{} not processed

2005-11-30 Thread Gavin Simpson
Just wondering if this is the expected behaviour. I was wanting to produce quoted text within \code{}, without manually entering the '"'. \dQuote{} seems advisable after reading the Writing R Extensions manual, so I tried \code{\dQuote{mytext}} expecting it to produce "mytext" in monospace font (w

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Gavin Simpson
On Wed, 2005-11-30 at 11:08 -0500, Duncan Murdoch wrote: > On 11/30/2005 11:02 AM, Gavin Simpson wrote: > > On Wed, 2005-11-30 at 10:46 -0500, Duncan Murdoch wrote: > >> On 11/30/2005 9:33 AM, Gavin Simpson wrote: > >> > Dear List, > >> > > >> > Can I build a binary package (.zip) for Windows on m

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Marc Schwartz (via MN)
On Wed, 2005-11-30 at 14:33 +, Gavin Simpson wrote: > Dear List, > > Can I build a binary package (.zip) for Windows on my Linux machine from > my package sources? There is no C, C++, Fortran code involved, just > plain ol' R. I read through the article by Jun and Rossini, but (on > first read

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Prof Brian Ripley
On Wed, 30 Nov 2005, Gavin Simpson wrote: > Can I build a binary package (.zip) for Windows on my Linux machine from > my package sources? There is no C, C++, Fortran code involved, just > plain ol' R. A high proportion of the time you can just zip up the installed package on Linux. We don't un

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Duncan Murdoch
On 11/30/2005 11:02 AM, Gavin Simpson wrote: > On Wed, 2005-11-30 at 10:46 -0500, Duncan Murdoch wrote: >> On 11/30/2005 9:33 AM, Gavin Simpson wrote: >> > Dear List, >> > >> > Can I build a binary package (.zip) for Windows on my Linux machine from >> > my package sources? There is no C, C++, For

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Gavin Simpson
On Wed, 2005-11-30 at 10:46 -0500, Duncan Murdoch wrote: > On 11/30/2005 9:33 AM, Gavin Simpson wrote: > > Dear List, > > > > Can I build a binary package (.zip) for Windows on my Linux machine from > > my package sources? There is no C, C++, Fortran code involved, just > > plain ol' R. I read thr

Re: [Rd] RNG stuck via Fortran call

2005-11-30 Thread Duncan Murdoch
On 11/30/2005 10:06 AM, Gilles GUILLOT wrote: > Having not much success with my previous question I try to reformulate it: > > I'm simulating a Markow chain in Fortran interfaced with R. > Each loop of my Fortran calls various functions of the R RNG through > the wrapper given below. > > In a ru

Re: [Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Duncan Murdoch
On 11/30/2005 9:33 AM, Gavin Simpson wrote: > Dear List, > > Can I build a binary package (.zip) for Windows on my Linux machine from > my package sources? There is no C, C++, Fortran code involved, just > plain ol' R. I read through the article by Jun and Rossini, but (on > first reading) this se

[Rd] RNG stuck via Fortran call

2005-11-30 Thread Gilles GUILLOT
Having not much success with my previous question I try to reformulate it: I'm simulating a Markow chain in Fortran interfaced with R. Each loop of my Fortran calls various functions of the R RNG through the wrapper given below. In a run of 100 iterations of the Markov kernel, after 20 iterati

[Rd] Building a windows binary of a package on Linux

2005-11-30 Thread Gavin Simpson
Dear List, Can I build a binary package (.zip) for Windows on my Linux machine from my package sources? There is no C, C++, Fortran code involved, just plain ol' R. I read through the article by Jun and Rossini, but (on first reading) this seems more targeted at building a Windows version of R and

Re: [Rd] multinom crashes (when I do something stupid) (PR#8358)

2005-11-30 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: Rob Foxall > Version: 2.2.0 > OS: Windows XP > Submission from: (NULL) (149.155.96.5) > > > I was using multinom from nnet package, when I did something stupid -- I > entered > in an incorrect factor variable as response. This factor had only one level. >

[Rd] multinom crashes (when I do something stupid) (PR#8358)

2005-11-30 Thread rob . foxall
Full_Name: Rob Foxall Version: 2.2.0 OS: Windows XP Submission from: (NULL) (149.155.96.5) I was using multinom from nnet package, when I did something stupid -- I entered in an incorrect factor variable as response. This factor had only one level. Instead of R telling me not to be so dumb, it cr

[Rd] R binomial RNG stuck at 1 via Fortran call

2005-11-30 Thread Gilles GUILLOT
wrapper now as part as the message, sorry about previous mail #include #include void F77_SUB(rndstart)(void) { GetRNGstate(); } void F77_SUB(rndend)(void) { PutRNGstate(); } double F77_SUB(ggrnorm)(double *mu, double *sigma) { return rnorm(*mu, *sigma); } double F77_SUB(ggrexp)(double *

[Rd] R binomial RNG stuck at 1 via Fortran call

2005-11-30 Thread Gilles GUILLOT
wrapper now attached -- ÅÅÅ Gilles Guillot INRA - MIA Paris Currently working from Göteborg Stochastic Centre Eklandagatan 86 - Rum1439 Chalmers University of Technology SE 412-96 Göteborg Sweden Phone +46 31 772 3514 / Fax +4

[Rd] R binomial RNG stuck at 1 via Fortran call

2005-11-30 Thread Gilles GUILLOT
Hi, I have some trouble with the result of a fortran function calling the R binomial RNG: The C function rbinom is wrapped as in the file attached. My main fortran program starts as call rndstart() and ends as call rndend() I happen to call the binomial RNG within a loop as b = ggrbinom(1