Re: [Rd] Sweave/ESS-like tools for HTML

2007-10-19 Thread Douglas Bates
On 10/18/07, Ben Bolker [EMAIL PROTECTED] wrote: Tom Short-2 wrote: See this link for more on creating/converting to HTML: http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/SweaveConvert For using ESS with mixed HTML/R files, see this:

[Rd] install.packages() and configure.args

2007-10-19 Thread Herve Pages
Hi, In the case where install.packages(packageA) also needs to install required package packageB, then what is passed thru the 'configure.args' argument seems to be lost when it's the turn of packageA to be installed (the last package to get installed). This is not easy to reproduce but let's

[Rd] Windows fixed/etc/Makeconf SHELL incorrect?

2007-10-19 Thread Martin Morgan
R developers, On windows, it seems like R_HOME/etc/Makeconf has SHELL = /bin/sh instead of the location of Rtools' sh. I think this is because R_HOME/src/gnuwin32/fixed/etc/Makeconf needs to define SHELL as just sh (since Rtools/bin has to be on the PATH). This is of consequence with R CMD

Re: [Rd] append/concatenate an element to a list in C-language

2007-10-19 Thread Peter Dalgaard
Robert Castelo wrote: hi, thanks to all the replies, i think the discussion can be followed throughout this message. You are returning an result in a function that returns void: the compiler will complain at you. apologies, indeed it should have been SEXP f(SEXP list, SEXP

Re: [Rd] append/concatenate an element to a list in C-language

2007-10-19 Thread Robert Castelo
hi, thanks to all the replies, i think the discussion can be followed throughout this message. You are returning an result in a function that returns void: the compiler will complain at you. apologies, indeed it should have been SEXP f(SEXP list, SEXP element); If you study the R

Re: [Rd] Sweave/ESS-like tools for HTML

2007-10-19 Thread Ben Bolker
Tom Short-2 wrote: See this link for more on creating/converting to HTML: http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/SweaveConvert For using ESS with mixed HTML/R files, see this: https://stat.ethz.ch/pipermail/ess-help/2006-December/003826.html - Tom Tom Short

Re: [Rd] append/concatenate an element to a list in C-language

2007-10-19 Thread Prof Brian Ripley
On Thu, 18 Oct 2007, Robert Castelo wrote: dear people, i need to code a function in C working in R and receives two R SEXP objects as parameters, where one is a list and another is a vector of integers: void f(SEXP list, SEXP vector) { ... return list; } You are returning an

[Rd] How to create Web service in R?

2007-10-19 Thread Rohan7
Hello all, Is it possible to create web service in R? Any links or book i can refer! My second question is i'm trying to call a web service using RCurl package. The pdf from google doesnt have entire code in it.[ R as web client - RCurl package]. It's not written how to send

Re: [Rd] documentation bug for isoreg example (PR#10352)

2007-10-19 Thread maechler
BT == Benjamin Tyner [EMAIL PROTECTED] on Thu, 18 Oct 2007 15:15:06 +0200 (CEST) writes: BT Full_Name: Benjamin Tyner BT Version: 2.6.0 (43063) BT OS: WinXP BT Submission from: (NULL) (171.161.224.10) BT At the end of the examples for isoreg, there is BT cat(R^2

[Rd] Name length of function argument? (PR#10357)

2007-10-19 Thread deiwiks
Hi, I've just been programming a function to calculate the likelihood in a probit model. The function looks like this likelihood - function(Y,X,p) { Z - p[1] +p[2]*X P - Y*pnorm(Z) + (1-Y)*(1-pnorm(Z)) -prod(P) } out - optim(likelihood,p=c(0,0),Y=wells$switch,X=wells$dist, hessian=TRUE) X and