Re: [Rd] segfault issue with parallel::mclapply and download.file() on Mac OS X

2018-10-05 Thread Seth Russell
Jeroen/Tomas, Thanks for the additional follow-ups. As shown in my original post, I am on macOS 10.12.6. I was using the command line version of R to get the error message I sent; I also get similar problems when running via GUI tools such as RStudio. I have co-workers who are only using macOS and

Re: [Rd] segfault issue with parallel::mclapply and download.file() on Mac OS X

2018-09-20 Thread Seth Russell
Thanks for the warning about fork without exec(). A co-worker of mine, also on Mac, ran the sample code and got an error about that exact problem. Thanks also for the pointer to try curl::multi_add() or download.file() with a vector of files. My actual use case includes downloading the files and

[Rd] segfault issue with parallel::mclapply and download.file() on Mac OS X

2018-09-20 Thread Seth Russell
I have an lapply function call that I want to parallelize. Below is a very simplified version of the code: url_base <- "https://cloud.r-project.org/src/contrib/"; files <- c("A3_1.0.0.tar.gz", "ABC.RAP_0.9.0.tar.gz") res <- parallel::mclapply(files, function(s) download.file(paste0(url_base, s), s