[Rd] bug in package chron (PR#12599)

2008-08-25 Thread zengzhenxing
Full_Name: Zeng, zhenxing Version: 2.7.1 (2008-06-23) OS: windows XP Submission from: (NULL) (158.182.1.30) Dear Author I have run into a trouble in using chron package The data frame: a date time_fut expiry_day bid ask trade_day 1 2004-09-01 09:45:002004-10 12860 1288938

Re: [Rd] ifelse

2008-08-25 Thread Tim Hesterberg
Others have commented on why this holds. There is an alternative, 'ifelse1', part of the splus2R package, that does what you'd like here. Tim Hesterberg >I find it slightly surprising, that > ifelse(TRUE, character(0), "") >returns NA instead of character(0). > >-- >Heikki Kaskelma

[Rd] na.action does not return na.action element of lm object

2008-08-25 Thread Andrew Redd
I'm not sure if this is the official behavior but I would expect the na.action function applied to a lm object to return the na.action. Here is what I mean. > x<-0:10 > y<-x+rnorm(10) Warning message: In x + rnorm(10) : longer object length is not a multiple of shorter object length > y[5]<-NA >

Re: [Rd] name conflicts

2008-08-25 Thread Duncan Murdoch
On 8/25/2008 3:19 PM, Gabor Grothendieck wrote: Use two colons, not three. Right, I forget about that possibility. Still, my warnings about the fragility of using a package without a NAMESPACE apply here too. Duncan Murdoch On Mon, Aug 25, 2008 at 3:05 PM, Max Kuhn <[EMAIL PROTECTED]> wr

Re: [Rd] name conflicts

2008-08-25 Thread Henrique Dallazuanna
Try this also: LogitBoost <- get("LogitBoost", envir = as.environment("package:caTools"), mode = "function") On Mon, Aug 25, 2008 at 4:05 PM, Max Kuhn <[EMAIL PROTECTED]> wrote: > Everyone, > > I've got code in my package that uses LogitBoost from the caTools > package. caTools does not have a na

Re: [Rd] name conflicts

2008-08-25 Thread Duncan Murdoch
On 8/25/2008 3:05 PM, Max Kuhn wrote: Everyone, I've got code in my package that uses LogitBoost from the caTools package. caTools does not have a namespace. My package also uses loads RWeka, which has a namespace, and also has a function called LogitBoost. After loading both packages, how can

Re: [Rd] name conflicts

2008-08-25 Thread Gabor Grothendieck
Use two colons, not three. On Mon, Aug 25, 2008 at 3:05 PM, Max Kuhn <[EMAIL PROTECTED]> wrote: > Everyone, > > I've got code in my package that uses LogitBoost from the caTools > package. caTools does not have a namespace. > > My package also uses loads RWeka, which has a namespace, and also has

[Rd] name conflicts

2008-08-25 Thread Max Kuhn
Everyone, I've got code in my package that uses LogitBoost from the caTools package. caTools does not have a namespace. My package also uses loads RWeka, which has a namespace, and also has a function called LogitBoost. After loading both packages, how can I be specific about running the version

Re: [Rd] problem running dll in R

2008-08-25 Thread Duncan Murdoch
On 8/25/2008 11:45 AM, rcoder wrote: Hi Duncan, Thanks for your reply. Would you know of a code + compiler combination that works in R, so I can get a feel for the process? Sure, the MinGW compilers in the Rtools should be fine. You get them from www.murdoch-sutherland.com/Rtools. With thos

Re: [Rd] problem running dll in R

2008-08-25 Thread rcoder
Hi Duncan, Thanks for your reply. Would you know of a code + compiler combination that works in R, so I can get a feel for the process? Thanks, rcoder Duncan Murdoch-2 wrote: > > On 23/08/2008 8:44 PM, rcoder wrote: >> Hi everyone, >> >> I've created a dll for a fortran subroutine, and whe

Re: [Rd] R CMD check problem

2008-08-25 Thread Duncan Murdoch
On 22/08/2008 11:21 AM, Giles Hooker wrote: I have a query after finding an error running Rtools on a Windows machine. I am trying to build an update to the R fda library using Rtools27 under Windows XP Pro. This is the current fda library on RForge: http://r-forge.r-project.org/projects/fda

Re: [Rd] problem running dll in R

2008-08-25 Thread Duncan Murdoch
On 23/08/2008 8:44 PM, rcoder wrote: Hi everyone, I've created a dll for a fortran subroutine, and when I call the subroutine in R (via a wrapped function) a standard program shutdown windows error prompt immediately pops up: the program has encountered a problem and needs to be shut down... sen

Re: [Rd] Linking With External Lapack: Segfault

2008-08-25 Thread Imanpreet
Hello Brian, The following output was when I run .configure with no option. When I run it with --with-lapack = " *-L/usr/lib -llapack" *option the following is the output of the "echos" towards the EOF use_lapack is unset with lapack is *-L/usr/lib -llapack #Only change. *Use_External

Re: [Rd] Linking With External Lapack: Segfault

2008-08-25 Thread Imanpreet
Hello Brian, I have been trying several options to configure and providing "-lcblas" was just one of them. I added echos for the following variable towards the configure. And with all of them I am getting the following use_lapack is unset with lapack is ** Use_External_lapack_true #