[Rd] rmultinom.c error probability not sum to 1

2016-03-10 Thread M.van_Iterson
Dear all, I have a questions regarding using the c function rmultinom.c. I got the following error message "rbinom: probability sum should be 1, but is 0.999264" Which is thrown by: if(fabs((double)(p_tot - 1.)) > 1e-7) MATHLIB_ERROR(_("rbinom: probability sum should be 1, but is %g"), (doub

Re: [Rd] rmultinom.c error probability not sum to 1

2016-03-10 Thread peter dalgaard
On 10 Mar 2016, at 12:47 , m.van_iter...@lumc.nl wrote: > Dear all, > > I have a questions regarding using the c function rmultinom.c. > > I got the following error message "rbinom: probability sum should be 1, but > is 0.999264" > > Which is thrown by: > > if(fabs((double)(p_tot - 1.)) > 1e

[Rd] getParseData() for installed packages

2016-03-10 Thread Kirill Müller
I can't seem to reliably obtain parse data via getParseData() for functions from installed packages. The parse data seems to be available only for the *last* file in the package. See [1] for a small example package with just two functions f and g in two files a.R and b.R. See [2] for a documen

Re: [Rd] getParseData() for installed packages

2016-03-10 Thread Duncan Murdoch
On 10/03/2016 8:27 AM, Kirill Müller wrote: I can't seem to reliably obtain parse data via getParseData() for functions from installed packages. The parse data seems to be available only for the *last* file in the package. See [1] for a small example package with just two functions f and g in tw

Re: [Rd] getParseData() for installed packages

2016-03-10 Thread Kirill Müller
On 10.03.2016 15:49, Duncan Murdoch wrote: On 10/03/2016 8:27 AM, Kirill Müller wrote: I can't seem to reliably obtain parse data via getParseData() for functions from installed packages. The parse data seems to be available only for the *last* file in the package. See [1] for a small example

Re: [Rd] getParseData() for installed packages

2016-03-10 Thread Duncan Murdoch
On 10/03/2016 9:53 AM, Kirill Müller wrote: On 10.03.2016 15:49, Duncan Murdoch wrote: > On 10/03/2016 8:27 AM, Kirill Müller wrote: >> I can't seem to reliably obtain parse data via getParseData() for >> functions from installed packages. The parse data seems to be available >> only for the *la

Re: [Rd] getParseData() for installed packages

2016-03-10 Thread Kirill Müller
On 10.03.2016 16:05, Duncan Murdoch wrote: On 10/03/2016 9:53 AM, Kirill Müller wrote: On 10.03.2016 15:49, Duncan Murdoch wrote: I install using R CMD INSTALL ., and I have options(keep.source = TRUE, keep.source.pkgs = TRUE) in my .Rprofile . The srcrefs are all there, it's just that the pa

[Rd] Problem building R-3.2.4

2016-03-10 Thread Mick Jordan
I am trying to build R-3.2.4 on an Oracle Enterprise Linux system, where I have previously built R-3.1.3 and predecessors without problems. I ran "./configure --with-x=no" ok. The make fails in src/extra/xz with what looks like a Makefile problem: liblzma.a: $(liblzma_a_OBJECTS) $rm -f $@

Re: [Rd] Problem building R-3.2.4

2016-03-10 Thread peter dalgaard
Yes, this is fixed in R-patched, but you can just change the $ to @ which is what was intended. You could also install a system-wide version of the library. Notice that in 3.3.x, the included xz & al. will disappear. -pd > On 10 Mar 2016, at 17:51 , Mick Jordan wrote: > > I am trying to buil

Re: [Rd] Problem building R-3.2.4

2016-03-10 Thread Martyn Plummer
This was reported as a bug earlier today and has been fixed in R- patched: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16755 Martyn On Thu, 2016-03-10 at 08:51 -0800, Mick Jordan wrote: > I am trying to build R-3.2.4 on an Oracle Enterprise Linux system, > where  > I have previously buil

Re: [Rd] Problem building R-3.2.4

2016-03-10 Thread Dirk Eddelbuettel
On 10 March 2016 at 08:51, Mick Jordan wrote: | I am trying to build R-3.2.4 on an Oracle Enterprise Linux system, where | I have previously built R-3.1.3 and predecessors without problems. I ran Well that is pretty much why R Core asks us to build early, and build often. | "./configure --with

Re: [Rd] Problem building R-3.2.4

2016-03-10 Thread Mick Jordan
On 3/10/16 9:22 AM, Dirk Eddelbuettel wrote: The same issue was already reported (and resolved) in the bug tracker earlier today. All this is due to 'most systems' using their system lzma (so the issue was not tickled in eg all the Debian and Ubuntu builds we do) but you here do not -- and hen

Re: [Rd] Problem building R-3.2.4

2016-03-10 Thread Duncan Murdoch
On 10/03/2016 12:35 PM, Mick Jordan wrote: On 3/10/16 9:22 AM, Dirk Eddelbuettel wrote: > > > The same issue was already reported (and resolved) in the bug tracker earlier > today. All this is due to 'most systems' using their system lzma (so the > issue was not tickled in eg all the Debian and

[Rd] checking https certificates

2016-03-10 Thread Jeroen Ooms
It looks like the https certificate on r-project.org is currently expired. I am sure sysadmin in Vienna is on it, but perhaps we can prevent this from happening again by adding a check in R or the mirror report [1] to warn about mirrors with https certs that are about to expire: library(openssl)

Re: [Rd] rmultinom.c error probability not sum to 1

2016-03-10 Thread M.van_Iterson
Hi all, I should have given a better explanation of my problem. Here it is. I extracted from my code the bit that gives the error. Place this in a file called test.c #include #include #include #include #include int main(){ double prob[3] = {0.0, 0.0, 0.0}; double prob_tot = 0.; p

Re: [Rd] rmultinom.c error probability not sum to 1

2016-03-10 Thread Berend Hasselman
> On 10 Mar 2016, at 21:25, m.van_iter...@lumc.nl wrote: > > Hi all, > > I should have given a better explanation of my problem. Here it is. > > I extracted from my code the bit that gives the error. Place this in a file > called test.c > > #include > #include > #include > #include > #in

Re: [Rd] rmultinom.c error probability not sum to 1

2016-03-10 Thread peter dalgaard
> On 10 Mar 2016, at 21:25 , m.van_iter...@lumc.nl wrote: > > Hi all, > > I should have given a better explanation of my problem. Here it is. > > I extracted from my code the bit that gives the error. Place this in a file > called test.c Aha. Missing info #1, C not R... > > #include > #in

Re: [Rd] rmultinom.c error probability not sum to 1

2016-03-10 Thread M.van_Iterson
Thanks for your replies. Indeed, I had to add the dimension of the probability vector like this rmultinom(1, prob, 3, rN); Regards, Maarten From: peter dalgaard [pda...@gmail.com] Sent: Thursday, March 10, 2016 9:45 PM To: Iterson, M. van (MOLEPI) Cc: r