Re: [Rd] Function works when custom defined but not when part of a package

2010-09-28 Thread Uwe Ligges
I guess you forgot to import the relevant S4 functionality into your namespace. Best, Uwe On 28.09.2010 02:33, Mike Lawrence wrote: Hi folks, I'm not sure if this is a bug or not so I thought I'd check here first. I came across it while working on an update to my package where I try to get

Re: [Rd] Incorporate graphic files into R-package

2010-09-28 Thread elgorgonzola
Duncan Murdoch-2 wrote: On 27/09/2010 10:44 AM, elgorgonzola wrote: Read about the inst directory in Writing R Extensions. You can put your logo there, it will be installed when your package is installed, and your Sweave document can find it using system.file(path within package,

[Rd] checking user interrupts in C(++) code

2010-09-28 Thread Karl Forner
Hello, My problem is that I have an extension in C++ that can be quite time-consuming. I'd like to make it interruptible. The problem is that if I use the recommended R_CheckUserInterrupt() method I have no possibility to cleanup (e.g. free the memory). I've seen an old thread about this, but I

[Rd] Bug report: Disappearing text when using a long expression in ylab

2010-09-28 Thread Tal Galili
Hello all, After help form Barry Rowlingson I am reporting my first bug to R-devel. Please be kind if I did something wrong in the reporting - and many thanks for anyone who is reading this e-mail. Example of the bug: tt - expression(paste(test

Re: [Rd] checking user interrupts in C(++) code

2010-09-28 Thread Simon Urbanek
Karl, On Sep 28, 2010, at 12:52 PM, Karl Forner wrote: My problem is that I have an extension in C++ that can be quite time-consuming. I'd like to make it interruptible. The problem is that if I use the recommended R_CheckUserInterrupt() method I have no possibility to cleanup (e.g. free

[Rd] Very slow plot rendering with X11 on CentOS 5.5

2010-09-28 Thread Weigand, Stephen D.
I am connecting from a PC to a Linux system running CentOS release 5.5 (Final) and it is extremely slow to render plots to the X11 device. This is not R's fault but I wonder if anyone can offer guidance so I can help the system administrators address the problem. I can connect to the Linux

[Rd] Very slow plot rendering with X11 on CentOS 5.5

2010-09-28 Thread R P Herrold
On Tue, 28 Sep 2010, Weigand, Stephen D. wrote: I am connecting from a PC to a Linux system running CentOS release 5.5 (Final) and it is extremely slow to render plots to the X11 device. The Linux timings are just awful, particularly using X-Win32. Cairo vs. Xlib doesn't seem to matter much.

Re: [Rd] Very slow plot rendering with X11 on CentOS 5.5

2010-09-28 Thread Henrik Bengtsson
For whatever it is worth, a long time ago I had this problem when ssh -X connecting to a server and doing simple plots such as plot(1:10). It was painfully slow and I could see how each data points was plotted. After using X11.options(type=Xlib) in R things was back to normal (fast) again. I

[Rd] small inaccuracy in startup warning message

2010-09-28 Thread Hervé Pagès
Hi, Cosmetic. Starting R with e.g. --max-ppsize=-10 produces the following warning: WARNING: '-max-ppsize' value is negative: ignored The name of the option displayed in the warning is incorrect. Could that be fixed? See src/main/CommandLineArgs.c (there are 3 places in that file where

[Rd] temp Rscript file collision on Windows

2010-09-28 Thread Hervé Pagès
Hi, The code below (found in src/gnuwin32/system.c) is almost guaranteed to do the wrong thing if 2 Rterm processes are started at the same time (or less than 1 second apart, the resolution of time() being 1 second): /* tmpfile() seems not to work on Vista: it tries to write in c:/ ifp =