[Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread Prof Brian Ripley
There have been spasmodic reports of symbols such as pi and infinity in plotmath being reproduced incorrectly on the X11 device on some Linux systems (at least Ubuntu 10 and Fedora 12/13), and we've managed to track down one cause whilst investigating PR#14355. Some systems have Wine and

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread Jari Oksanen
On 19/08/10 09:55 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: There have been spasmodic reports of symbols such as pi and infinity in plotmath being reproduced incorrectly on the X11 device on some Linux systems (at least Ubuntu 10 and Fedora 12/13), and we've managed to track down one

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread peter dalgaard
On Aug 19, 2010, at 9:15 AM, Jari Oksanen wrote: The X11(type = 'cairo') shows the problem with example(points); TestChars(font=5). However, there is no problem with the default device (quartz), nor with the default X11() which has type = 'Xlib' (unlike documented in ?X11: 'cairo' is

Re: [Rd] Automatically retrieve correct collation

2010-08-19 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: baptiste auguie [mailto:baptiste.aug...@googlemail.com] Gesendet: Donnerstag, 19. August 2010 07:41 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Automatically retrieve correct collation Hi, roxygen can create the collate field for

[Rd] C or Java code generation

2010-08-19 Thread Vyacheslav Karamov
Hi All! I'm new to R and I need to know is it possible for R to generate C/C++ source code, Java byte code or native Win32 DLL like MatLab? --- WBR, Vyacheslav. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] C or Java code generation

2010-08-19 Thread Vyacheslav Karamov
Daniel Cegiełka пишет: http://www.rforge.net/r2c/ regards, daniel 2010/8/19 Vyacheslav Karamov ubuntul...@yandex.ru mailto:ubuntul...@yandex.ru Hi All! I'm new to R and I need to know is it possible for R to generate C/C++ source code, Java byte code or native Win32 DLL like

Re: [Rd] C or Java code generation

2010-08-19 Thread Daniel Cegiełka
2010/8/19 Vyacheslav Karamov ubuntul...@yandex.ru Daniel Cegiełka пишет: http://www.rforge.net/r2c/ regards, daniel 2010/8/19 Vyacheslav Karamov ubuntul...@yandex.ru mailto: ubuntul...@yandex.ru Hi All! I'm new to R and I need to know is it possible for R to generate

Re: [Rd] C or Java code generation

2010-08-19 Thread Vyacheslav Karamov
Daniel Cegiełka пишет: 2010/8/19 Vyacheslav Karamov ubuntul...@yandex.ru mailto:ubuntul...@yandex.ru Daniel Cegiełka пишет: http://www.rforge.net/r2c/ regards, daniel 2010/8/19 Vyacheslav Karamov ubuntul...@yandex.ru

Re: [Rd] C or Java code generation

2010-08-19 Thread Daniel Cegiełka
Is there any posibility to use R without installing? I mean that I have my own application written in MS Visual C++ and I need to use R script in this app. I can install R and use it via DCOM, but it's not convenient for the end users of my program. Dirk Eddelbuettel love R/C++

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread Prof Brian Ripley
On Thu, 19 Aug 2010, peter dalgaard wrote: On Aug 19, 2010, at 9:15 AM, Jari Oksanen wrote: The X11(type = 'cairo') shows the problem with example(points); TestChars(font=5). However, there is no problem with the default device (quartz), nor with the default X11() which has type = 'Xlib'

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread Jari Oksanen
On 19/08/10 14:04 PM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: OSX. I can't get fc-match to list it, anyway. R's X11(type='cairo') device is using a version of cairographics compiled by Simon which includes a static build of fontconfig. So it is not really 'OSX'! I'm guessing you are

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread Gavin Simpson
On Thu, 2010-08-19 at 07:55 +0100, Prof Brian Ripley wrote: There have been spasmodic reports of symbols such as pi and infinity in plotmath being reproduced incorrectly on the X11 device on some Linux systems (at least Ubuntu 10 and Fedora 12/13), and we've managed to track down one cause

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread Prof Brian Ripley
If you have more than one element in a fonts.conf file you need to group them, e.g. fontconfig match target=pattern test name=familystringSymbol/string/test edit name=family mode=prepend binding=same stringStandard Symbols L/string /edit /match alias binding=same

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread Gavin Simpson
On Thu, 2010-08-19 at 12:36 +0100, Prof Brian Ripley wrote: If you have more than one element in a fonts.conf file you need to group them, e.g. Many thanks, Prof. Ripley. That is working just fine now on my Fedora 12 workstation. All the best, G fontconfig match target=pattern test

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread peter dalgaard
On Aug 19, 2010, at 1:04 PM, Prof Brian Ripley wrote: On Thu, 19 Aug 2010, peter dalgaard wrote: On Aug 19, 2010, at 9:15 AM, Jari Oksanen wrote: The X11(type = 'cairo') shows the problem with example(points); TestChars(font=5). However, there is no problem with the default device

Re: [Rd] One possible cause for incorrect symbols in X11() output

2010-08-19 Thread peter dalgaard
On Aug 19, 2010, at 1:55 PM, peter dalgaard wrote: It is also not using pango, and so not selecting fonts the same way as on Linux. You're assuming (in fact, correctly) that I was using Simon's build, but my locally built version is similar. That doesn't appear to use pango either; I

Re: [Rd] C or Java code generation

2010-08-19 Thread Dirk Eddelbuettel
On 19 August 2010 at 13:02, Daniel Cegiełka wrote: | Is there any posibility to use R without installing? | | I mean that I have my own application written in MS Visual C++ and I need | to use R script in this app. I can install R and use it via DCOM, but it's | not convenient for the end

Re: [Rd] c.POSIXct

2010-08-19 Thread Paul Gilbert
I used to get caught by this c() behaviour often, but now I do expect it to drop attributes. I think it would break many things if you change it, and force people to write different code when they really do want to drop attributes. When you want new behaviour it is usually better to define a

Re: [Rd] c.POSIXct

2010-08-19 Thread Gabor Grothendieck
On Thu, Aug 19, 2010 at 10:16 AM, Paul Gilbert pgilb...@bank-banque-canada.ca wrote: I used to get caught by this c() behaviour often, but now I do expect it to drop attributes. I think it would break many things if you change it, and force people to write different code when they really do

Re: [Rd] c.POSIXct

2010-08-19 Thread Spencer Graves
Hi, Gabor, Paul, et al.: For classes that did not supply a ca method, I'd rather see the default being to start with the corresponding c method followed by an effort to preserve attributes to the maximum extent feasible. I'm not sure the best defaults, but at the moment, I would

Re: [Rd] C or Java code generation

2010-08-19 Thread Dirk Eddelbuettel
On 19 August 2010 at 17:06, Vyacheslav Karamov wrote: | Dirk Eddelbuettel пишет: | On 19 August 2010 at 13:02, Daniel Cegiełka wrote: | | Is there any posibility to use R without installing? | | | | I mean that I have my own application written in MS Visual C++ and I need | | to use R

Re: [Rd] perl.exe has stopped working: Fixed.

2010-08-19 Thread Spencer Graves
To complete this thread for anyone encountering a similar problem, the fix I said I'd try (below) worked. Specifically, I installed the latest Strawberry Perl, modified the path so the first reference points to the new Perl, and R CMD build, check, INSTALL, and INSTALL -build all

[Rd] Can you share a working example of R program aided by fast BLAS?

2010-08-19 Thread Paul Johnson
Can one of you give me an R program that displays the benefits an accelerated BLAS in R? Here's why I ask, in case you wonder: In a linux cluster, I've hit some bumps in the road. The worst one by far was that I installed R, then GotoBLAS2 with default settings, and after that, jobs using Rmpi

[Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Duncan Murdoch
I am trying to improve the error reporting in Sweave documents, so that if you have a syntax error in a code chunk, it will tell you which line of your input file contained the error. For example, currently you get this: Error: chunk 1 (label=named) Error in parse(text = chunk) : unexpected

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Marc Schwartz
On Aug 19, 2010, at 2:07 PM, Duncan Murdoch wrote: I am trying to improve the error reporting in Sweave documents, so that if you have a syntax error in a code chunk, it will tell you which line of your input file contained the error. For example, currently you get this: Error: chunk

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Kasper Daniel Hansen
I have read a significant number of vignettes from Bioconductor packages and I have never seen it used. Kasper On Thu, Aug 19, 2010 at 3:17 PM, Marc Schwartz marc_schwa...@me.com wrote: On Aug 19, 2010, at 2:07 PM, Duncan Murdoch wrote: I am trying to improve the error reporting in Sweave

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Duncan Murdoch
On 19/08/2010 3:17 PM, Marc Schwartz wrote: On Aug 19, 2010, at 2:07 PM, Duncan Murdoch wrote: I am trying to improve the error reporting in Sweave documents, so that if you have a syntax error in a code chunk, it will tell you which line of your input file contained the error. For

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Claudia Beleites
I never used it. I got curious, though. What would be a situation that benefits of this option? Maybe a use case could be found by brute force (grep all .Rnw files on CRAN for the option? Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Duncan Murdoch
On 19/08/2010 4:29 PM, Claudia Beleites wrote: I never used it. I got curious, though. What would be a situation that benefits of this option? When I put it in, I thought it would be for people who were writing about Sweave. Duncan Murdoch Maybe a use case could be found by brute force

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Kevin Coombes
I use it, frequently. The idea for it goes back to some of Knuth's original literate programming ideas for developing weave and tangle when he was writing TeX (the program). I want to be able to document the pieces of some complex algorithm without having to see all of the gory details. For

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Duncan Murdoch
On 19/08/2010 5:07 PM, Kevin Coombes wrote: I use it, frequently. The idea for it goes back to some of Knuth's original literate programming ideas for developing weave and tangle when he was writing TeX (the program). I want to be able to document the pieces of some complex algorithm without

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Kevin Coombes
I picked the example from segmenting chromosomes for a reason. I have a fair chunk of code that deals with not quite exceeding the amount of RAM available in the machine sitting on my desktop. If I use functions, then the pass-by-value semantics of R will push me beyond the limits at some

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Gabor Grothendieck
On Thu, Aug 19, 2010 at 6:21 PM, Kevin Coombes kevin.r.coom...@gmail.com wrote: I picked the example from segmenting chromosomes for a reason.  I have a fair chunk of code that deals with not quite exceeding the amount of RAM available in the machine sitting on my desktop.  If I use functions,

[Rd] No RTFM?

2010-08-19 Thread Spencer Graves
What do you think about adding a No RTFM policy to the R mailing lists? Per, http://en.wikipedia.org/wiki/RTFM: The Ubuntu Forums and LinuxQuestions.org, for instance, have instituted no RTFM policies to promote a welcoming atmosphere.[8][9]. RTFM [and] Go look on google are two

Re: [Rd] Does anyone use Sweave (RweaveLatex) option expand=FALSE?

2010-08-19 Thread Charles C. Berry
On Thu, 19 Aug 2010, Kevin Coombes wrote: I picked the example from segmenting chromosomes for a reason. I have a fair chunk of code that deals with not quite exceeding the amount of RAM available in the machine sitting on my desktop. If I use functions, then the pass-by-value semantics of