Re: [Rd] unsorted - suggestion for performance improvement and ALTREP support for POSIXct

2019-01-07 Thread Gabriel Becker
Hi Harvey, Its exciting to see people thinking about and looking at ALTREP speedups "in the wild" :). You're absolutely right that pulling out the REAL call will give you a significant speedup, but ALTREP does add a little wrinkle (and a solution to it!). Detailed responses and comments inline:

Re: [Rd] Runnable R packages

2019-01-07 Thread Iñaki Ucar
On Mon, 7 Jan 2019 at 22:09, Gergely Daróczi wrote: > > Dear David, sharing some related (subjective) thoughts below. > > You can provide your app as a Docker image, so that the end-user > simply calls a "docker pull" and then "docker run" -- that can be done > from a user-friendly script as well.

Re: [Rd] Runnable R packages

2019-01-07 Thread Dirk Eddelbuettel
On 7 January 2019 at 22:09, Gergely Daróczi wrote: | You can provide your app as a Docker image, so that the end-user | simply calls a "docker pull" and then "docker run" -- that can be done | from a user-friendly script as well. | Of course, this requires Docker to be installed, but if that's a

Re: [Rd] Runnable R packages

2019-01-07 Thread Murray Stokely
Some other major tech companies have in the past widely use Runnable R Archives (".Rar" files), similar to Python .par files [1], and integrate them completely into the proprietary R package build system in use there. I thought there were a few systems like this that had made their way to CRAN or t

Re: [Rd] Runnable R packages

2019-01-07 Thread Dirk Eddelbuettel
On 3 January 2019 at 11:43, David Lindelof wrote: | Dear all, | | I’m working as a data scientist in a major tech company. I have been using | R for almost 20 years now and there’s one issue that’s been bugging me of | late. I apologize in advance if this has been discussed before. | | R has tr

Re: [Rd] Runnable R packages

2019-01-07 Thread Gergely Daróczi
Dear David, sharing some related (subjective) thoughts below. On Mon, Jan 7, 2019 at 9:53 PM David Lindelof wrote: > > Dear all, > > I’m working as a data scientist in a major tech company. I have been using > R for almost 20 years now and there’s one issue that’s been bugging me of > late. I apo

[Rd] Runnable R packages

2019-01-07 Thread David Lindelof
Dear all, I’m working as a data scientist in a major tech company. I have been using R for almost 20 years now and there’s one issue that’s been bugging me of late. I apologize in advance if this has been discussed before. R has traditionally been used for running short scripts or data analysis n

[Rd] Bug report with patch: `stats:::regularize.values()` always creates full copies of `x` and `y`

2019-01-07 Thread Evgeni Chasnovski
This is intended to be a bug report with proposed patch. I am posting to this mailing list as described in NOTE in "Bug Reporting in R". Function `stats:::regularize.values()` is meant to preprocess `x` and `y` arguments to have "proper" values for later use during interpolation. If input is alrea

[Rd] unsorted - suggestion for performance improvement and ALTREP support for POSIXct

2019-01-07 Thread Harvey Smith
I believe the performance of isUnsorted() in sort.c could be improved by calling REAL() once (outside of the for loop), rather than calling it twice inside the loop. As an aside, it is implemented in the faster way in doSort() (sort.c line 401). The example below shows the performance improvemen

[Rd] Bug report with patch: `stats:::regularize.values()` always creates full copies of `x` and `y`

2019-01-07 Thread Evgeni Chasnovski
This is intended to be a bug report with proposed patch. I am posting to this mailing list as described in NOTE in "Bug Reporting in R". Function `stats:::regularize.values()` is meant to preprocess `x` and `y` arguments to have "proper" values for later use during interpolation. If input is alrea

Re: [Rd] [patch] Documentation for list.files when no matches found

2019-01-07 Thread Tomas Kalibera
Thanks for the report, fixed in documentation in R-devel. Best Tomas On 1/7/19 3:03 AM, Jonathan Carroll wrote: Apologies in advance if this is already known but a search of the r-devel archive did not immediately turn up any mentions. list.files() (and thus dir()) returns character(0) when no