[Rd] Constructor blah() vs. as.blah()

2008-08-15 Thread jhallman
When should we use one versus the other? If I'm designing an S3 class "blah", should I just implement blah <- function(x, ...) UseMethod("blah") and then a bunch of blah.whatever() functions, including blah.default()? Or should I do as.blah <- function(x, ...) UseMethod("as.blah") with a bunch

[Rd] Can configure.ac detect 64 bit R?

2007-06-06 Thread jhallman
My fame package has to link to the libchli.so that comes with FAME. However, FAME is now supplying both 32 and 64 bit versions of the library. The 32-bit version is $FAME/hli/libchli.so while the 64-bit version is $FAME/hli/64/libchli.so. To set the right flags, it seems that I need to know, from

[Rd] Correction to PR #9631 (PR#9632)

2007-04-23 Thread jhallman
Full_Name: Jeff Hallman Version: 2.4.1 OS: Linux Submission from: (NULL) (132.200.32.34) When I filed this a few minutes ago, I left off the rewritten read.ssd(). I've included it at the end this time. read.ssd() invokes PROC COPY to create an xport file, but PROC COPY has some annoying limita

[Rd] foreign::read.ssd and long names (PR#9631)

2007-04-23 Thread jhallman
Full_Name: Jeff Hallman Version: 2.4.1 OS: Linux Submission from: (NULL) (132.200.32.34) read.ssd() invokes PROC COPY to create an xport file, but PROC COPY has some annoying limitations that read.ssd() should deal with. The first is that PROC COPY doesn't work with member names (the sectionname

[Rd] Request: make as.POSIXlt generic

2007-02-22 Thread jhallman
In the base package, as.POSIXct() is an S3 generic function, but as.POSIXlt() is not. As shown below, the current implementation is already crying out to be refactored into a generic function with methods for various classes. It calls "inherits" five times. Not only is this bad style, it also dis

[Rd] How to override functions in namespaces?

2007-02-22 Thread jhallman
In package A I have askForString(), which asks the user for a string. Also in package A I have defined ssh(), which calls askForString(). Package B has package A as a prerequisite. In package B I redefine askForString() to take advantage of a nicer user interface made available by B, namely the E

[Rd] Documenting revised functions

2006-12-12 Thread jhallman
I am running into some problems with the way R CMD check looks at documentation. The stats::filter function returns a time series with class "ts" or c("mts", "ts") if it is multivariate. I have created a more capable time series class called "tis" as part of my fame package. My package redefine

[Rd] dyn.load and function calls without 'PACKAGE' argument

2006-12-08 Thread jhallman
I'm writing a package that interfaces to the FAME database, via a library of compiled C routines accessible through a Linux .so file. My .onLoad() function loads the .so like this: dyn.load("/opt/fame/timeiq/lib/linux_x86/libjchli.so", local = F) and after that I also load my own fame.so via li

[Rd] How to get DLL paths in a package?

2006-12-08 Thread jhallman
I'm writing a package that I hope to make available on CRAN. The package interfaces to the FAME database via a .so file supplied by FAME, which should be loaded in the package .onLoad() function. Unfortunately, so far as I know, there is no standard location where this .so file can always be found

[Rd] tcltk::tk_select.list has bad width (PR#9410)

2006-12-06 Thread jhallman
Full_Name: Jeff Hallman Version: 2.4.0 OS: Linux Submission from: (NULL) (132.200.32.34) The window put up by tcltk::tk_select.list appears to be of fixed width (20 chars), and is not wide enough to accomodate strings longer than 20 characters long. This can be easily fixed by setting the option

[Rd] Bug in tkStartGUI in package tcltk (PR#9396)

2006-11-28 Thread jhallman
Full_Name: Jeff Hallman Version: 2.4.0 OS: Linux Submission from: (NULL) (132.200.32.34) When the R Internals manual was added to the list of manuals in tkStartGUI, whoever did it left an extra comma in the code. This creates an ugly warning when tkStartGUI is invoked. Here is a patch file to f

[Rd] format.POSIXlt drops characters following percent sign (PR#8975)

2006-06-13 Thread jhallman
Full_Name: Jeff Hallman Version: 2.3.1 OS: Windows Submission from: (NULL) (132.200.32.34) Internal(format.POSIXlt(as.POSIXlt(Sys.time()), "%Y%m%d%q", F)) Linux R-2.2.1 returns "20060613%q". Windows R-2.3.1 returns "20060613" dropping the "%q". The documentation says "Any character

[Rd] format.default loses matrix structure (PR#8695)

2006-03-20 Thread jhallman
Full_Name: Jeff Hallman Version: 2.2.0 OS: Linux Submission from: (NULL) (132.200.32.34) format.default() loses matrix structure if big.mark is given > format(matrix(1:16, 4)) [,1] [,2] [,3] [,4] [1,] " 1" " 5" " 9" "13" [2,] " 2" " 6" "10" "14" [3,] " 3" " 7" "11" "15" [4,] " 4" " 8" "12"