Re: [Rd] fortune() in .Rprofile conflicts with R CMD INSTALL

2007-03-05 Thread Kurt Hornik
> Kurt Hornik writes: > Gregor Gorjanc writes: >> Seth Falcon fhcrc.org> writes: >>> The quick fix for you is, I believe, >>> >>> if (interactive()) { >>> library(fortunes) >>> fortune() >>> detach("package:fortunes") >>> } >>> >>> Whether something could be changed so that R's output d

[Rd] Periods in package names?

2007-03-05 Thread Henrik Bengtsson
Hi, is it ok to have more than one period in a package name, e.g. aroma.light.bioc? I remember there was once a limitation/a recommendation that one should use at most one period in a package name. I just browsed "Writing R Extensions" (for R v2.4.1) and scanned it for words "period" and "dot",

Re: [Rd] Problem using callNextMethod() in S4

2007-03-05 Thread cstrato
Dear Martin Thank you for this extensive explanation! I hope that I have understood it, but I will realize it as I proceed with my package. Now, my example works as I have expected it to work, great! One problem that I face is lack of extensive explanation of S4 classes, especially with respect t

Re: [Rd] non-blocking socketConnection

2007-03-05 Thread Simon Urbanek
On Mar 5, 2007, at 12:05 PM, Chmielowski, Piotr2 [CAI] wrote: > In an R session I have > >> c <-socketConnection("localhost", port=6011, blocking=F, server=T, > open="w+") > > After I connect to the server from, say, telnet > > % telnet localhost 6011 > > the socketConnection returns and gives a

Re: [Rd] typo in nls.Rd

2007-03-05 Thread Duncan Murdoch
On 2/26/2007 6:43 AM, Katharine Mullen wrote: > in R version 2.5.0 Under development (unstable) (2007-02-25 r40804), > the `formula' entry in the `arguments' section of nls.Rd (L25-26) reads > > \item{formula}{a nonlinear model \link{formula} including variables and > parameters. Will be

Re: [Rd] typo in R-lang.texi

2007-03-05 Thread Duncan Murdoch
On 2/25/2007 5:49 AM, Stephen Eglen wrote: > Hi, > > R-lang.texi line 2020/1 currently says: > > This allows, e.g., a > local variable in a function to have the same name AS a global object. > > The word "AS" is missing in that sentence. > > (Line number according to > https://svn.r-pro

Re: [Rd] typo in reshape.Rd

2007-03-05 Thread Duncan Murdoch
On 2/28/2007 11:41 PM, Stephen D. Weigand wrote: > The 3 lines below are from paragraph 4 of \details in reshape.Rd. > In line [2], a space is needed before "where" and the "to" at the > end of the line should be removed. > > [1]these names. The default is variable names like \code{x.1}, > [2]\co

[Rd] non-blocking socketConnection

2007-03-05 Thread Chmielowski, Piotr2 [CAI]
In an R session I have > c <-socketConnection("localhost", port=6011, blocking=F, server=T, open="w+") After I connect to the server from, say, telnet % telnet localhost 6011 the socketConnection returns and gives a valid c. My problem is as follows : I would expect something like > readL

Re: [Rd] RJDBC

2007-03-05 Thread Simon Urbanek
Jose, On Mar 5, 2007, at 7:39 AM, Jose Sierra wrote: > I need help. > > I'm trying to connect with an Oracle DBMS and MySQL DBMS, I'm using > RJDBC package. > > My code is the next: > > library('rJava') > library('DBI') > library('RJDBC') > > //Mysql > drv <- > JDBC("com.mysql.jdbc.Driver","C:\\T

Re: [Rd] extracting rows from a data frame by looping over the row names: performance issues

2007-03-05 Thread Greg Snow
The difference is in indexing by row number vs. indexing by row name. It has long been known that names slow matricies down, some routines make a copy of dimnames of a matrix, remove the dimnames, do the computations with the matrix, then put the dimnames back on. This can speed things up quite a

[Rd] RJDBC

2007-03-05 Thread Jose Sierra
I need help. I'm trying to connect with an Oracle DBMS and MySQL DBMS, I'm using RJDBC package. My code is the next: library('rJava') library('DBI') library('RJDBC') //Mysql drv <- JDBC("com.mysql.jdbc.Driver","C:\\Temporal\\mysql-connector-java-3.0.9-stable-bin.jar","'") conn <- dbConnect(dr

[Rd] 2 bugs in max.col() (PR#9542)

2007-03-05 Thread oehl_list
Dear R-Developers, I think I found two bugs in max.col(). Ties between zeros are not broken, which might affect simulations. -Inf and Zero can be treated the same, which can give completely wrong results, e.g. when the second max is sought by replacing all maxs by -Inf. To fix max.col I do of

Re: [Rd] RJDBC

2007-03-05 Thread Jose Sierra
Thank you Sean. I send the message to R-help. Sean Davis escribió: > Jose Sierra wrote: >> I need help. >> >> I'm trying to connect with an Oracle DBMS and MySQL DBMS, I'm using >> RJDBC package. >> >> My code is the next: >> >> library('rJava') >> library('DBI') >> library('RJDBC') >> >> //Mysq

Re: [Rd] RJDBC

2007-03-05 Thread Sean Davis
Jose Sierra wrote: > I need help. > > I'm trying to connect with an Oracle DBMS and MySQL DBMS, I'm using > RJDBC package. > > My code is the next: > > library('rJava') > library('DBI') > library('RJDBC') > > //Mysql > drv <- > JDBC("com.mysql.jdbc.Driver","C:\\Temporal\\mysql-connector-java-3.0.

[Rd] RJDBC

2007-03-05 Thread Jose Sierra
I need help. I'm trying to connect with an Oracle DBMS and MySQL DBMS, I'm using RJDBC package. My code is the next: library('rJava') library('DBI') library('RJDBC') //Mysql drv <- JDBC("com.mysql.jdbc.Driver","C:\\Temporal\\mysql-connector-java-3.0.9-stable-bin.jar","'") conn <- dbConnect

Re: [Rd] fortune() in .Rprofile conflicts with R CMD INSTALL

2007-03-05 Thread Kurt Hornik
> Gregor Gorjanc writes: > Seth Falcon fhcrc.org> writes: >> The quick fix for you is, I believe, >> >> if (interactive()) { >> library(fortunes) >> fortune() >> detach("package:fortunes") >> } >> >> Whether something could be changed so that R's output doesn't confuse >> itself and gcc whe