Re: [Rd] issue with sample in R 3.6.0.

2019-03-01 Thread Tierney, Luke
Thanks; fixed now in R-devel. Not an issue on Linux/Mac OS but is on 64-bit Windows, where sizeof(long) is 4. Best, luke On Fri, 1 Mar 2019, Joseph Wood wrote: > Hello, > > I think there is an issue in the sampling rejection algorithm in R 3.6.0. > > The do_sample2 function in src/main/unique.c

Re: [Rd] Problem with compiling OpenBLAS to work with R

2019-03-01 Thread Erin Hodgess
Yay! I re-installed everything and got through "Make distribution"! I have one more question, please: I am running the make check-all. I have an error at reg-1d. It stops the process. However, the mean difference (as per the file) is 2.0e-12. I'm ok with that. How do I bypass this, please?

[Rd] issue with sample in R 3.6.0.

2019-03-01 Thread Joseph Wood
Hello, I think there is an issue in the sampling rejection algorithm in R 3.6.0. The do_sample2 function in src/main/unique.c still has 4.5e15 as an upper limit, implying that numbers greater than INT_MAX are still to be supported by sample in base R. Please review the examples below: set.seed(

Re: [Rd] Surprising results from INTEGER_GET_REGION with ALTREP object

2019-03-01 Thread Tomas Kalibera
On 3/1/19 1:52 PM, Ralf Stubner wrote: > Dear Listmembers, > > wanting to learn more about ALTREP I wrote the following function to > extract a subsequence from an integer vector: > > #include > > SEXP integer_get_region(SEXP _x, SEXP _i, SEXP _n) { >int i = INTEGER(_i)[0]; >int n = INTEGE

[Rd] Surprising results from INTEGER_GET_REGION with ALTREP object

2019-03-01 Thread Ralf Stubner
Dear Listmembers, wanting to learn more about ALTREP I wrote the following function to extract a subsequence from an integer vector: #include SEXP integer_get_region(SEXP _x, SEXP _i, SEXP _n) { int i = INTEGER(_i)[0]; int n = INTEGER(_n)[0]; SEXP result = PROTECT(Rf_allocVector(INTSXP, n

Re: [Rd] stopifnot

2019-03-01 Thread Martin Maechler
> Suharto Anggono Suharto Anggono > on Wed, 27 Feb 2019 22:46:04 + writes: > My points: > - The 'withCallingHandlers' construct that is used in current 'stopifnot' code has no effect. Without it, the warning message is the same. The overridden warning is not raised. The

[Rd] Package inclusion in R core implementation

2019-03-01 Thread Morgan Morgan
Hi, It sometimes happens that some packages get included to R like for example the parallel package. I was wondering if there is a process to decide whether or not to include a package in the core implementation of R? For example, why not include the Rcpp package, which became for a lot of user

Re: [Rd] pcre problems

2019-03-01 Thread Tomas Kalibera
On 3/1/19 9:43 AM, robin hankin wrote: Still something wrong. I've uncommented the deb-src lines in sources.list as you suggested (and I thought it couldn't hurt to try --allow-unauthenticated as well) and: So you can try commenting again the sources that are failing, R should be in universe

Re: [Rd] pcre problems

2019-03-01 Thread robin hankin
Still something wrong. I've uncommented the deb-src lines in sources.list as you suggested (and I thought it couldn't hurt to try --allow-unauthenticated as well) and: root@limpet:/etc/apt# apt-get update --allow-unauthenticated Hit:1 http://nz.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 htt

Re: [Rd] pcre problems

2019-03-01 Thread Tomas Kalibera
On 3/1/19 9:03 AM, robin hankin wrote: OK thanks Tomas, but I get OK~ sudo apt-get build-dep r-base Reading package lists... Done E: Unable to find a source package for r-base OK~ It seems you need to enable source codeĀ  repositories on your system (and then run apt-get update). You can enab

Re: [Rd] pcre problems

2019-03-01 Thread robin hankin
OK thanks Tomas, but I get OK~ sudo apt-get build-dep r-base Reading package lists... Done E: Unable to find a source package for r-base OK~ hankin.ro...@gmail.com On Fri, Mar 1, 2019 at 8:47 PM Tomas Kalibera wrote: > > On 3/1/19 7:10 AM, robin hankin wrote: > > thanks for this guys. > > >