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

2007-10-20 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Herve The "best" way to specify configure.args when there are multiple packages (either directly or via dependencies) is to use names on the character vector, i.e. install.packages("Rgraphviz", rep="http://bioconductor.org/

Re: [Rd] How to create Web service in R?

2007-10-20 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rohan7 wrote: > 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

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

2007-10-20 Thread Martin Morgan
Thanks to both for your time. I edited bin/config:124 to display info before one of the problematic make commands, adding echo "MAKE --version: `${MAKE} --version`" echo "which MAKE: `which ${MAKE}`" echo "R_HOME: ${R_HOME}" echo "R_SHARE_DIR: ${R_SHARE_DIR}" echo "query: $query" here is the out

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

2007-10-20 Thread Duncan Murdoch
Martin Morgan wrote: > D:\mtmorgan\src\R-devel>bin\R CMD config CC > make: /bin/sh: Command not found > make: ** [print] Error 127 > make: /bin/sh: Command not found > make: ** [print] Error 127 > > D:\mtmorgan\src\R-devel>bin\R CMD config CC > > This is on a system where cygwin and Rtools (from yo

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

2007-10-20 Thread Prof Brian Ripley
On Sat, 20 Oct 2007, Martin Morgan wrote: > D:\mtmorgan\src\R-devel>bin\R CMD config CC > make: /bin/sh: Command not found > make: ** [print] Error 127 > make: /bin/sh: Command not found > make: ** [print] Error 127 > > D:\mtmorgan\src\R-devel>bin\R CMD config CC > > This is on a system where cygw

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

2007-10-20 Thread Martin Morgan
D:\mtmorgan\src\R-devel>bin\R CMD config CC make: /bin/sh: Command not found make: ** [print] Error 127 make: /bin/sh: Command not found make: ** [print] Error 127 D:\mtmorgan\src\R-devel>bin\R CMD config CC This is on a system where cygwin and Rtools (from your installer) are under c:/usr (rathe

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

2007-10-20 Thread Prof Brian Ripley
Please study the help page before posting. In the example code given 'p' is partially matching the second argument 'par' of optim(), so the unnamed first argument matches to the second argument 'fn'. In the second case, 'f' matches 'par' and 'pp' matches '...', and 'f' is of 'type closure'. O

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

2007-10-20 Thread Duncan Murdoch
Martin Morgan wrote: > 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). >

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

2007-10-20 Thread Duncan Murdoch
[EMAIL PROTECTED] wrote: > 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),

Re: [Rd] How to create Web service in R?

2007-10-20 Thread Richard Pearson
Rohan There's a bioconductor package called RWebServices - does this help? http://bioconductor.org/packages/2.1/bioc/html/RWebServices.html Regards Richard. Rohan7 wrote: > Hello all, > >Is it possible to create web service in R? >Any links or book i can refer! > > My second qu