Re: [R-pkg-devel] robust download function in R (similar to wget)?

2016-08-25 Thread Bob Rudis
libcurl (which the RCurl & curl packages are built on) do not inherently have retry or resume partial capabilities, but those could be packaged up into a "robustdownloader" package. There's no guarantee of wget or curl binaries being on a system (especially Windows, even with an Rtools installation

Re: [R-pkg-devel] robust download function in R (similar to wget)?

2016-08-25 Thread Dirk Eddelbuettel
On 25 August 2016 at 08:24, Joshua Ulrich wrote: | Try downloader: https://cran.r-project.org/package=downloader Also, if you really want wget / know how to parameterise wget you can ... just depend on _wget itself_ which you can a) test for via Sys.which("wget") b) select as an option for down

Re: [R-pkg-devel] Compiler choice on CRAN (R-windows-oldrel)

2016-08-25 Thread Mark van der Loo
Thanks Uwe. Very clear. I'll post the solution I chose, so people can find it later. The problem is that GCC <= 4.6.3 (at least) does not implement OpenMP reduction statements. So now I do something like this: #ifdef _OPENMP #include #endif #ifdef __GNUC__ #if __GNUC__ <= 4 & __GNUC_MINOR__ <=

Re: [R-pkg-devel] robust download function in R (similar to wget)?

2016-08-25 Thread Joshua Ulrich
Try downloader: https://cran.r-project.org/package=downloader On Thu, Aug 25, 2016 at 7:47 AM, Lucas Ferreira Mation wrote: > I am creating this package > that has to download data from some sources that are a bit > unstable/unreliable. The proble

[R-pkg-devel] robust download function in R (similar to wget)?

2016-08-25 Thread Lucas Ferreira Mation
I am creating this package that has to download data from some sources that are a bit unstable/unreliable. The problem is described in this issue . Is there a more "robust" download fucntio

Re: [R-pkg-devel] Compiler choice on CRAN (R-windows-oldrel)

2016-08-25 Thread Uwe Ligges
On 25.08.2016 13:14, Mark van der Loo wrote: Thank you Peter, good points. Good to know for sure (or a.s.) that compiler specification at CRAN is not an option. The 4th option is interesting as well. I may just do that. Thanks again! Mark For Windows, indeed, you are tight to gcc 4.6.3 for

Re: [R-pkg-devel] Compiler choice on CRAN (R-windows-oldrel)

2016-08-25 Thread Mark van der Loo
Thank you Peter, good points. Good to know for sure (or a.s.) that compiler specification at CRAN is not an option. The 4th option is interesting as well. I may just do that. Thanks again! Mark Op do 25 aug. 2016 om 12:17 schreef peter dalgaard : > I don't have hard info on ABI compatib

Re: [R-pkg-devel] Compiler choice on CRAN (R-windows-oldrel)

2016-08-25 Thread peter dalgaard
I don't have hard info on ABI compatibility between gcc versions, but there have been issues in the past, at least with with gfortran. Now, many people/schools will have R-3.2.x installed, built with gcc 4.6.y. We cannot retroactively recompile their installation, nor expect them to install a n

[R-pkg-devel] Compiler choice on CRAN (R-windows-oldrel)

2016-08-25 Thread Mark van der Loo
Dear listers, Compilation of my gower pkg fails on R-oldrel-windows. I am pretty sure that this is because it uses gcc 4.6.3 which has limited support for OpenMP (the errors are the same as I got on the old travis-ci build environment, see my related question[1]). Now, according to the Rtools pa