Re: [Rd] png(type='cairo'): point symbols without boarders are not anti-aliased?

2013-10-21 Thread Yihui Xie
Perhaps yes. Sorry I did not check the bug reports. Can someone elaborate on the "undesirable artefacts"? I made two heatmaps using png() and CairoPNG(), respectively. I can see the difference, but it is not very clear to me what the artefacts are, or what the facts should be. png(): http://i.imgu

Re: [Rd] About integrating R inside a C++ software

2013-10-21 Thread Jeroen Ooms
Rcpp is great, and I second that suggestion. But you could also explore another route and use something like OpenCPU. OpenCPU is a framework for embedding R in systems and applications. It exposes a simple HTTP(s) RPC API to call R functions and scripts, and makes it easy to retrieve the resultin

Re: [Rd] png(type='cairo'): point symbols without boarders are not anti-aliased?

2013-10-21 Thread Paul Murrell
Hi Is this the same as "Bug 15462" ? https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15462 Paul On 10/22/13 10:43, Yihui Xie wrote: Hi, It seems that anti-aliasing in png(type = 'cairo') is not well supported for the point symbols without boarders, e.g. pch = 16. The Cairo package works

Re: [Rd] png(type='cairo'): point symbols without boarders are not anti-aliased?

2013-10-21 Thread Yihui Xie
Sorry, typo in the subject: I mean "borders". Regards, Yihui -- Yihui Xie Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Oct 21, 2013 at 4:43 PM, Yihui Xie wrote: > Hi, > > It seems that anti-aliasing in png(type = 'cairo') is not we

[Rd] png(type='cairo'): point symbols without boarders are not anti-aliased?

2013-10-21 Thread Yihui Xie
Hi, It seems that anti-aliasing in png(type = 'cairo') is not well supported for the point symbols without boarders, e.g. pch = 16. The Cairo package works well, though. You can compare png() with CairoPNG(): png(): http://i.imgur.com/8niB3jX.png CairoPNG(): http://i.imgur.com/FZBJOxm.png f = fu

Re: [Rd] Set operation generics

2013-10-21 Thread Hervé Pagès
Hi Hadley, On 10/21/2013 10:51 AM, Hadley Wickham wrote: Hi all, Would anyone be interested in reviewing a patch to make the set operations (union, intersect, setdiff, setequal, is.element) generic? S3 generics, S4 generics, or primitives? Since they are binary operations, sounds like suppor

Re: [Rd] Assigning empty symbol to variable.

2013-10-21 Thread luke-tierney
On Mon, 21 Oct 2013, Jeroen Ooms wrote: When a variable is assigned the empty symbol, looking up the variable results in an error message that looks like a function call: foo <- as.list(lm)$data ls() [1] "foo" foo Error: argument "foo" is missing, with no default get("foo") Error in get("

Re: [Rd] Assigning empty symbol to variable.

2013-10-21 Thread Gabriel Becker
Sorry, I meant I think it is R_MissingArg, not R_UnboundValue. Again though this is just a guess (though somewhat easily tested). ~G On Mon, Oct 21, 2013 at 1:30 PM, Gabriel Becker wrote: > Jeroen, > > The problem seems to be that you are grabbing a symbol that doesn't have a > name. I suspect

Re: [Rd] Assigning empty symbol to variable.

2013-10-21 Thread Gabriel Becker
Jeroen, The problem seems to be that you are grabbing a symbol that doesn't have a name. I suspect its R_UnboundValue, but I don't have time to check right now. Anyway, take a look at this: > .Internal(inspect(as.list(lm)$data)) @1cada98 01 SYMSXP g1c0 [MARK,NAM(2)] "" (has value) And compare it

[Rd] Assigning empty symbol to variable.

2013-10-21 Thread Jeroen Ooms
When a variable is assigned the empty symbol, looking up the variable results in an error message that looks like a function call: > foo <- as.list(lm)$data > ls() [1] "foo" > foo Error: argument "foo" is missing, with no default > get("foo") Error in get("foo") : argument "foo" is missing, with n

[Rd] Set operation generics

2013-10-21 Thread Hadley Wickham
Hi all, Would anyone be interested in reviewing a patch to make the set operations (union, intersect, setdiff, setequal, is.element) generic? Thanks, Hadley -- Chief Scientist, RStudio http://had.co.nz/ __ R-devel@r-project.org mailing list https://

Re: [Rd] About integrating R inside a C++ software

2013-10-21 Thread Dirk Eddelbuettel
Tambellini William galaxysemi.com> writes: > We want to integrate R inside our software in order to use mainly the > engine (usual stats as mean, sigma, Pearson, outlier detection, CPA, > multivariate, ...) and probably later the chart solution. > Of course we don't want to temporary write t

[Rd] About integrating R inside a C++ software

2013-10-21 Thread Tambellini William
Hi, We are a company developing a software mainly in C++. We want to integrate R inside our software in order to use mainly the engine (usual stats as mean, sigma, Pearson, outlier detection, CPA, multivariate, ...) and probably later the chart solution. Of course we don't want to temporary

Re: [Rd] Parallel R expression evaluations

2013-10-21 Thread peter dalgaard
On Oct 21, 2013, at 02:24 , Simon Urbanek wrote: > Jai, > > On Oct 19, 2013, at 1:37 AM, JaiReddy wrote: > >> Thanks Simon. >> >> May I know how R works if two expressions come at the same time for >> evaluation. When I debug my case I found that issue was found with indexed >> values of prote

Re: [Rd] Possible tweak to R intro - was RE: [R] Subseting a data.frame -

2013-10-21 Thread Bert Gunter
Thank you. I stand corrected. Cheers, Bert On Mon, Oct 21, 2013 at 1:17 AM, Prof Brian Ripley wrote: > On 18/10/2013 15:12, S Ellison wrote: >> >> Transferred from R-help: From: S Ellison Subsetting using subset() is perhaps the most natural way of subsetting data frames; pe

Re: [Rd] Possible tweak to R intro - was RE: [R] Subseting a data.frame -

2013-10-21 Thread peter dalgaard
On Oct 21, 2013, at 10:17 , Prof Brian Ripley wrote: > Some of us think convenience functions such as subset() and transform() were > mistakes, not least as we see the problems they cause when people try to use > them in functions and packages. Sooner or later you will need to learn to use > i

Re: [Rd] Subversion log no longer being updated daily

2013-10-21 Thread Duncan Murdoch
On 13-10-20 2:00 AM, Berend Hasselman wrote: The subversion log for 2013 (http://developer.r-project.org/R_svnlog_2013) on the R developer page hasn't been updated since September 29. I would appreciate the daily updates returning. Thanks for pointing that out. It's now back to being updat

Re: [Rd] Possible tweak to R intro - was RE: [R] Subseting a data.frame -

2013-10-21 Thread Prof Brian Ripley
On 18/10/2013 15:12, S Ellison wrote: Transferred from R-help: From: S Ellison Subsetting using subset() is perhaps the most natural way of subsetting data frames; perhaps a line or two and an example could usefully be included in the 'Working with data frames' section of the R Intro? From: Be