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

2019-02-27 Thread Avraham Adler
I believe that repo just follows the directions on my blog. Without seeing Dr. Hodges’s code, my initial concern is the many references to Cygwin. My method specifically does not use Cygwin but MSYS2 and Mingw64/Rtools35. That will likely change to solely Rtools40 once R3.6 is released due to the M

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

2019-02-27 Thread Kenny Bell
This person has had apparent success - you could follow what they did or just download their product (with appropriate caution downloading a random .exe). https://github.com/thequackdaddy/R-OpenBLAS On Thu, Feb 28, 2019 at 6:28 AM Erin Hodgess wrote: > Hello! > > I'm not sure if this is the rig

Re: [Rd] stopifnot

2019-02-27 Thread Suharto Anggono Suharto Anggono via R-devel
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 original warning stays. - Overriding call in error and warning to 'cl.i' doesn't always give better outc

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Tierney, Luke
Fixed in R-devel and R-patched. Best, luke On Wed, 27 Feb 2019, Tierney, Luke wrote: > Thanks for the report. Should be fixed shortly. > > Best, > > luke > > On Tue, 26 Feb 2019, Brian Montgomery via R-devel wrote: > >> The following code crashes after about 300 iterations on my  >> x86_64-w64-

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Tierney, Luke
On Tue, 26 Feb 2019, Brian Montgomery via R-devel wrote: > The following code crashes after about 300 iterations on my  > x86_64-w64-mingw32 machine on R 3.5.2 --vanilla.   > Others have duplicated this (see  > https://github.com/tidyverse/magrittr/issues/190 if necessary), but I don't > know how

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Tierney, Luke
Thanks for the report. Should be fixed shortly. Best, luke On Tue, 26 Feb 2019, Brian Montgomery via R-devel wrote: > The following code crashes after about 300 iterations on my  > x86_64-w64-mingw32 machine on R 3.5.2 --vanilla.   > Others have duplicated this (see  > https://github.com/tidyve

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Travers Ching
Some testing: Adding `gc()` inside the for loop prevented a crash for 10,000+ iterations, whereas adding `Sys.sleep(.2)` (which takes longer) did not. I couldn't wrap my head around the `vectorAssign` source code, but I suspect it is a matter of an intermediate object not being protected and bein

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Travers Ching
On an azure centos VM, I can reproduce this bug which reports either: *** caught segfault *** address 0x7006a, cause 'memory not mapped' (crash) Or incompatible types (from builtin to integer) in subassignment type fix (no crash) Like Gabriel, I could not reproduce the bug on a mac laptop.

[Rd] Problem with compiling OpenBLAS to work with R

2019-02-27 Thread Erin Hodgess
Hello! I'm not sure if this is the right place to post this, so apologies in advance if I'm not in the right list. I downloaded the OpenBLAS and am following Avraham Adler's great instructions. However, when I run make, things go well to a certain point, and then go bad: make [snip] touch cygo

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread William Dunlap via R-devel
Valgrind (without gctorture) reports memory misuse: % R --debugger=valgrind --debugger-args="--leak-check=full --num-callers=18" ... > x <- 1:20 > y <- rep(letters[1:5], length(x) / 5L) > for (i in 1:1000) { + # x[y == 'a'] <- x[y == 'b'] + x <- `[<-`(x, y == 'a', x[y == 'b']) + cat(i, '

Re: [Rd] Improved Data Aggregation and Summary Statistics in R

2019-02-27 Thread Duncan Murdoch
On 26/02/2019 8:25 a.m., Sebastian Martin Krantz wrote: Dear Developers, Having spent time developing and thinking about how data aggregation and summary statistics can be enhanced in R, I would like to present my ideas/efforts in the form of two commands: The first, which for now I called 'col

Re: [Rd] Improved Data Aggregation and Summary Statistics in R

2019-02-27 Thread Sebastian Martin Krantz
Dear Iñaki and Joris, thank you for the positive feedback! I had attached a code file to the post, but apparently it was removed. I will attach it again to this e-mail, otherwise both vignette and code can be downloaded from the following link: https://www.dropbox.com/sh/s0k1tiz7el55g1q/AACpri-nru

Re: [Rd] stopifnot

2019-02-27 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Sun, 24 Feb 2019 14:22:48 + writes: >> From https://github.com/HenrikBengtsson/Wishlist-for-R/issues/70 : > ... and follow up note from 2018-03-15: Ouch... in R-devel, stopifnot() has become yet 4-5 times slower; > .

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Rui Barradas
Hello, I can also reproduce this, R 3.5.2 on Ubuntu 18.04 LTS. First run gives error after 148. After 148: Error in `[<-`(x, y == "a", x[y == "b"]) : substituto tem comprimento zero Execução interrompida Translation: replacement has length zero Execution stopped Second run gives a diffe

Re: [Rd] Improved Data Aggregation and Summary Statistics in R

2019-02-27 Thread Joris Meys
Dear Sebastian, Initially I was a bit hesitant to think about yet another way to summarize data, but your illustrations convinced me this is actually a great addition to the toolset currently available in different R packages. Many of us have written custom functions to get the required tables for

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Iñaki Ucar
On Wed, 27 Feb 2019 at 09:51, Serguei Sokol wrote: > > On 26/02/2019 05:18, Brian Montgomery via R-devel wrote: > > The following code crashes after about 300 iterations on my > > x86_64-w64-mingw32 machine on R 3.5.2 --vanilla. > > Others have duplicated this (see > > https://github.com/tidyver

Re: [Rd] Improved Data Aggregation and Summary Statistics in R

2019-02-27 Thread Iñaki Ucar
On Wed, 27 Feb 2019 at 09:02, Sebastian Martin Krantz wrote: > > Dear Developers, > > Having spent time developing and thinking about how data aggregation and > summary statistics can be enhanced in R, I would like to present my > ideas/efforts in the form of two commands: > > The first, which for

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Serguei Sokol
On 26/02/2019 05:18, Brian Montgomery via R-devel wrote: The following code crashes after about 300 iterations on my x86_64-w64-mingw32  machine on R 3.5.2 --vanilla. Others have duplicated this (see  https://github.com/tidyverse/magrittr/issues/190 if necessary), but I don't know how machine/OS

Re: [Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Gabriel Becker
Hi Brian, I don't have a windows machine, but on a modern macbook pro I'm not able to get this to crash in 3.5.1 or a very recent built-from-source R-devel. I increased the length of x by 2 orders of magnitude but that just made the loop take a lot longer to successfully run in both R versions i

Re: [Rd] Compile R to WebAssembly / Emscripten?

2019-02-27 Thread Scott Chamberlain
Recently Michael Droettboom at Mozilla was asking around about doing for R what they've done for Python here https://github.com/iodide-project/pyodide with the Iodide project S On Tue, Feb 26, 2019 at 11:47 AM Gabriel Becker wrote: > As I recall, the major blocker is that R links against a numb

[Rd] Intermittent crashes with inset `[<-` command

2019-02-27 Thread Brian Montgomery via R-devel
The following code crashes after about 300 iterations on my x86_64-w64-mingw32  machine on R 3.5.2 --vanilla.   Others have duplicated this (see  https://github.com/tidyverse/magrittr/issues/190 if necessary), but I don't know how machine/OS-dependent it may be.   If it doesn't crash for you, plea