Re: [Rd] rbinom in RcppArmadillo?

2014-01-14 Thread Dirk Eddelbuettel
On 14 January 2014 at 16:40, boiled_wonderland wrote: | What is the RcppArmadillo way to make binomial draws from a vector of probs, | similar to what rbinom does in R? 1) It is pretty common list etiquette in these quarters to post with a name and affiliation. You may find list member more

[Rd] rbinom in RcppArmadillo?

2014-01-14 Thread boiled_wonderland
What is the RcppArmadillo way to make binomial draws from a vector of probs, similar to what rbinom does in R? Thanx! -- View this message in context: http://r.789695.n4.nabble.com/rbinom-in-RcppArmadillo-tp4683593.html Sent from the R devel mailing list archive at Nabble.com. ___

Re: [Rd] Passing a large array to .Call by reference

2014-01-14 Thread Boris Aronshtam
Sorry for the post. My mistake. The further investigation shows that .Call() passes arrays/vectors by reference. -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: Monday, January 13, 2014 6:27 PM To: Boris Aronshtam Cc: r-devel@r-project.org Subject: Re: [Rd] Pas

Re: [Rd] Determining the resolution of a screen device

2014-01-14 Thread Prof Brian Ripley
On 14/01/2014 15:32, Jon Clayden wrote: Dear all, I am trying to find a way to reliably and programmatically establish the resolution (i.e. DPI or equivalent) of an on-screen device. It seemed to me that dev.new(width=1, height=1) dpi <- dev.size("px") would do the trick, but the result

[Rd] Determining the resolution of a screen device

2014-01-14 Thread Jon Clayden
Dear all, I am trying to find a way to reliably and programmatically establish the resolution (i.e. DPI or equivalent) of an on-screen device. It seemed to me that dev.new(width=1, height=1) dpi <- dev.size("px") would do the trick, but the result does not seem to be correct, at least on OS