Re: [Rd] R console freezes after several runs of compiled C code

2009-04-14 Thread Xiangyang Ye
Thanks, Simon. j<*m was the cause of the crush. I really appreciate your help. Xiangyang On Tue, Apr 14, 2009 at 5:55 PM, Simon Urbanek wrote: > > On Apr 14, 2009, at 4:57 PM, Xiangyang Ye wrote: > > Hi All, >> >> I tried my best to figure out how to deal with the freezing R console but >> with

Re: [Rd] R console freezes after several runs of compiled C code

2009-04-14 Thread Simon Urbanek
On Apr 14, 2009, at 4:57 PM, Xiangyang Ye wrote: Hi All, I tried my best to figure out how to deal with the freezing R console but with no luck. I followed the instructions of calling R_ProcessEvents() regularly but still couldn't work it out (the callings were removed from the below C c

[Rd] R console freezes after several runs of compiled C code

2009-04-14 Thread Xiangyang Ye
Hi All, I tried my best to figure out how to deal with the freezing R console but with no luck. I followed the instructions of calling R_ProcessEvents() regularly but still couldn't work it out (the callings were removed from the below C code). I am using R-2.8.1 on Windows XP service pack 3. The

Re: [Rd] Problem cross-compiling on Ubuntu

2009-04-14 Thread Harry Southworth
Thanks to everyone who responded. I should now have enough options to make progress. The Windows tools have been updated since the last time i tried, so I'll have another go. I noticed the 2.6.0/2.7.1 discrepancy, updated everything, and found it was still there. Since the problem I'm having seem

Re: [Rd] Problem cross-compiling on Ubuntu

2009-04-14 Thread Dirk Eddelbuettel
Harry, On 14 April 2009 at 18:24, Harry Southworth wrote: | I'm using Ubuntu 8.10 (Intrepid Ibex) and R 2.7.1. ^^^ [ You can also get R 2.8.1 for free, see the R FAQ and search Ubuntu, or go directly to http://cran.r-project.org/bin/linux/ubuntu

Re: [Rd] Problem cross-compiling on Ubuntu

2009-04-14 Thread Simon Urbanek
On Apr 14, 2009, at 15:20 , Harry Southworth wrote: I'm new to building packages that have source code and I didn't know about that site. In any event, it is an experimental private build for testing, and it is more convenient for me to do most of the testing in a Windows environment. I've spen

Re: [Rd] Problem cross-compiling on Ubuntu

2009-04-14 Thread Harry Southworth
I'm new to building packages that have source code and I didn't know about that site. In any event, it is an experimental private build for testing, and it is more convenient for me to do most of the testing in a Windows environment. I've spent a lot of time failing to build from source on Windows,

Re: [Rd] Problem cross-compiling on Ubuntu

2009-04-14 Thread Kasper Daniel Hansen
Is there any particular reason why you are doing this, instead of just using http://win-builder.r-project.org/ After that server went online, I see little (no) need for cross- compilation, I must say. Kasper On Apr 14, 2009, at 10:24 , Harry Southworth wrote: I'm using Ubuntu 8.10 (Intre

[Rd] Problem cross-compiling on Ubuntu

2009-04-14 Thread Harry Southworth
I'm using Ubuntu 8.10 (Intrepid Ibex) and R 2.7.1. I've built a package from source (a modified version of gbm) and it contains some C++ code. I now want to cross-compile it to get a Windows version. I installed R using sudo apt-get update sudo apt-get install r-base sudo apt-get instal

Re: [Rd] should sub(perl=TRUE) also handle \E in replacement, to complement \U and \L?

2009-04-14 Thread Martin Maechler
> "WD" == William Dunlap > on Mon, 13 Apr 2009 11:56:51 -0700 writes: WD> Currently sub(perl=TRUE) allows you to specify \U and \L WD> in the replacement argument so that the rest of the WD> subpatterns in the line (the \\ things) will be WD> converted to upper or lowe

[Rd] top level condition handlers

2009-04-14 Thread Romain Francois
Hello, I would like to establish top level condition handlers and restarts, so that I don't explicit calls to withCallingHandlers and withRestarts in many places: For example : > customError function( message ){ err <- simpleError( message ) class( err ) <- c( "customError", class( err) )

Re: [Rd] 'R CMD build --binary BUNDLE' and Windows

2009-04-14 Thread jens . henrik
It has only been fixed partly: 'Contains' fields with more than about 72 characters are 'corrupted' when the DESCRIPTION file is 'reformated' in the process from 'incomming' to 'http://cran.at.r-project.org/web/packages/' - or R (2.9.0) cannot handle 'contains' fields with more than one line. The

[Rd] using Sweave, how to save a plot in a given size

2009-04-14 Thread Lore M
Hi, I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave(). I'd like to insert all the pages from a pdf file. So I use this command : \includepdf[pages=-]{figs/plot-partI} The thing is that those pages are quite small and I'd like them t

[Rd] using Sweave, how to save a plot in a given size

2009-04-14 Thread Lore M
Hi there, I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave(). I'd like to save my plots in a given size. How can I do that ? The code is : \SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE} <>= plotFunction() @ \includepdf[pag