Re: [Rd] Determining the exit code of an "almost finished" R script

2019-07-11 Thread Gergely Daróczi
Sorry for the late reply, it took a couple of iterations (and some days off) to find a feasible solution without splitting the helper function into two -- please see below if interested. On Sat, Jun 8, 2019 at 6:50 PM Duncan Murdoch wrote: > > On 08/06/2019 9:55 a.m., Gergely Daróczi

Re: [Rd] Determining the exit code of an "almost finished" R script

2019-06-08 Thread Gergely Daróczi
On Sat, Jun 8, 2019 at 2:13 PM Duncan Murdoch wrote: > > On 08/06/2019 7:42 a.m., Gergely Daróczi wrote: > > Dear All, > > > > I'm using "reg.finalizer" in a function that is to be called in R scripts > > to do some cleanup on success. I have not fo

[Rd] Determining the exit code of an "almost finished" R script

2019-06-08 Thread Gergely Daróczi
Dear All, I'm using "reg.finalizer" in a function that is to be called in R scripts to do some cleanup on success. I have not found a way to run the function only if the script run without errors, so when the exit code is expected to be 0. What I've tried is checking "geterrmessage()", but unfort

Re: [Rd] mccollect with NULL in R 3.6

2019-05-03 Thread Gergely Daróczi
On Fri, May 3, 2019 at 4:34 PM Tomas Kalibera wrote: > > On 5/3/19 3:04 PM, Gergely Daróczi wrote: > > On Thu, May 2, 2019 at 7:24 PM Tomas Kalibera > > wrote: > >> On 5/1/19 12:25 AM, Gergely Daróczi wrote: > >>> Dear All, > >>> > >&g

Re: [Rd] mccollect with NULL in R 3.6

2019-05-03 Thread Gergely Daróczi
On Thu, May 2, 2019 at 7:24 PM Tomas Kalibera wrote: > > On 5/1/19 12:25 AM, Gergely Daróczi wrote: > > Dear All, > > > > I'm running into issues with calling mccollect on a list containing NULL > > using R 3.6 (this used to work in 3.5.3): > > > &

[Rd] mccollect with NULL in R 3.6

2019-04-30 Thread Gergely Daróczi
Dear All, I'm running into issues with calling mccollect on a list containing NULL using R 3.6 (this used to work in 3.5.3): jobs <- lapply( list(NULL, 'foobar'), function(x) mcparallel(identity(x))) mccollect(jobs, wait = FALSE, timeout = 0) #> Error in names(res) <- pnames[match(s, pids

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

Re: [Rd] Memory leak with tons of closed connections

2016-11-11 Thread Gergely Daróczi
On Fri, Nov 11, 2016 at 12:08 PM, Martin Maechler wrote: >>>>>> Gergely Daróczi >>>>>> on Thu, 10 Nov 2016 16:48:12 +0100 writes: > > > Dear All, > > I'm developing an R application running inside of a Java daemon on >

[Rd] Memory leak with tons of closed connections

2016-11-10 Thread Gergely Daróczi
Dear All, I'm developing an R application running inside of a Java daemon on multiple threads, and interacting with the parent daemon via stdin and stdout. Everything works perfectly fine except for having some memory leaks somewhere. Simplified version of the R app: while (TRUE) { c

Re: [Rd] Milestone: 8000 packages on CRAN

2016-03-01 Thread Gergely Daróczi
Thank you very much, Henrik, for maintaining this list -- it's always a pleasure to see the ever growing number of useful R packages! I decided a few times in the past to extend your research with the list of archived packages, but did not actually start coding -- until tonight: https://gist.githu

Re: [Rd] quieting the "apparent S3 methods" warning

2015-04-20 Thread Gergely Daróczi
Dear All, I have a similar issue that I would like to resolve before submitting a new version of a package to CRAN: I have a "pander" S3 method and a function called "pander.return", which a wrapper around the first (capturing the output of "pander"). Now I'm aware of the fact, that it should have

[Rd] Open Software License v. 3.0

2014-10-08 Thread Gergely Daróczi
Dear All, I would like to propose adding the OSL-3.0 license to the list of "standard" licenses bundled with R: Index: share/licenses/license.db === --- share/licenses/license.db (revision 66733) +++ share/licenses/license.db (workin

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Gergely Daróczi
options(error) ? Or if we try (and >> >> succeed) to code a patch for it, to see it integrating in R ? >> > >> > No, I don't think so. withCallingHandlers is all you need for your >> > purpose. >> > >> > Duncan Murdoch >> > >> >> &g

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-07 Thread Gergely Daróczi
On Tue, Oct 7, 2014 at 2:21 PM, Duncan Murdoch wrote: > On 07/10/2014, 7:04 AM, DataK - B. THIEURMEL wrote: > > Hi, > > > > With the use of R in production, it is necessary to have a system of > > logs effective, and light. > > > > Package exist as to futile.logger, but it require the additional