[Rd] S4 coercion responsibility

2008-09-15 Thread Paul Gilbert
Should functions or the user be responsible for coercing an S4 object argument containing the proper object (and thus should below be considered a bug in the packages or not)? The example is with RSQLite but the same thing happens with RMySQL, and other DBI packages. library(RSQLite)

[Rd] Including data in package for use by C functions

2008-09-15 Thread Ernest Turro
How should one go about including data files for use by some C function in an R package? The data subdirectory is for additional data files the package makes available for loading from R, not C, and including the files in some other directory is no good because non- standard directories are

Re: [Rd] Including data in package for use by C functions

2008-09-15 Thread Duncan Murdoch
On 9/15/2008 10:18 AM, Ernest Turro wrote: How should one go about including data files for use by some C function in an R package? The data subdirectory is for additional data files the package makes available for loading from R, not C, and including the files in some other directory is no

[Rd] Cross-platform function availability

2008-09-15 Thread hadley wickham
Hi all, Is there any way to determine which functions are available on which platforms? For example, winProgr essBar (and related functions) are only available on Windows, but what about tkProgressBar and txtProgressBar? Is there any way to figure out which functions are only available on

Re: [Rd] Cross-platform function availability

2008-09-15 Thread Duncan Murdoch
On 9/15/2008 11:42 AM, hadley wickham wrote: Hi all, Is there any way to determine which functions are available on which platforms? For example, winProgr essBar (and related functions) are only available on Windows, but what about tkProgressBar and txtProgressBar? Is there any way to figure

Re: [Rd] Cross-platform function availability

2008-09-15 Thread Greg Snow
I think it is a little more complex than just installing and checking. tkProgressBar uses tcltk which works on the major platforms (unix/linux, mac, windows), but only if tk is installed and available. I believe that on mac tk is only available if X11 is used and if I remember correctly, if R

Re: [Rd] S4 coercion responsibility

2008-09-15 Thread Seth Falcon
* On 2008-09-15 at 08:56 -0400 Paul Gilbert wrote: Should functions or the user be responsible for coercing an S4 object argument containing the proper object (and thus should below be considered a bug in the packages or not)? The example is with RSQLite but the same thing happens with

Re: [Rd] Cross-platform function availability

2008-09-15 Thread hadley wickham
On Mon, Sep 15, 2008 at 12:06 PM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 9/15/2008 11:42 AM, hadley wickham wrote: Hi all, Is there any way to determine which functions are available on which platforms? For example, winProgr essBar (and related functions) are only available on Windows,

Re: [Rd] Cross-platform function availability

2008-09-15 Thread Duncan Murdoch
On 9/15/2008 1:43 PM, hadley wickham wrote: On Mon, Sep 15, 2008 at 12:06 PM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 9/15/2008 11:42 AM, hadley wickham wrote: Hi all, Is there any way to determine which functions are available on which platforms? For example, winProgr essBar (and

[Rd] Typo in cut.Rd

2008-09-15 Thread Stephen Weigand
In the \seealso section of cut.Rd, can \pkg{hmisc} be changed to \pkg{Hmisc}? Thanks, Stephen -- Rochester, Minn. USA __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Typo in cut.Rd

2008-09-15 Thread Duncan Murdoch
On 15/09/2008 5:45 PM, Stephen Weigand wrote: In the \seealso section of cut.Rd, can \pkg{hmisc} be changed to \pkg{Hmisc}? Thanks, I'll fix it. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] odesolve dynload example

2008-09-15 Thread Redding, Matthew
Hello R Developers, This is my first foray into using c-code with R, so please forgive my foolishness. I had a look at the archives and did not find anything on this, so hopefully I am not doubling up. I have tried to use R cmd to create an object file from the odesolve dynload example. I am

[Rd] question in value-based color in image()

2008-09-15 Thread M.
Hello, I have a matrix with value varying from -1 to 1. I hope to use scaled color based on its value to produce an image of this matrix. Suppose I hope to label those data in [-1,-0.5] with blue, label those [-0.5,0.8] with light blue (tone is proportional to its value) and label those [0.8,1]