search for: robust_lvec

Displaying 4 results from an estimated 4 matches for "robust_lvec".

2018 Aug 07
2
[R-pkg-devel] Run garbage collector when too many open files
...mine using this package generates an error >> when its tests are run. >> >> The simplest solution is to add some calls to gc() in my tests. But a >> more general/automatic solution would be nice. >> >> I thought about something in the lines of >> >> robust_lvec <- function(...) { >> ?? tryCatch({ >> ???? lvec(...) >> ?? }, error = function(e) { >> ???? gc() >> ???? lvec(...) # duplicated code >> ?? }) >> } >> >> e.g. try to open a file, when that fails call the garbage collector >> and try ag...
2018 Aug 07
1
Run garbage collector when too many open files
...n its tests are run. >>>> >>>> The simplest solution is to add some calls to gc() in my tests. But >>>> a more general/automatic solution would be nice. >>>> >>>> I thought about something in the lines of >>>> >>>> robust_lvec <- function(...) { >>>> ?? tryCatch({ >>>> ???? lvec(...) >>>> ?? }, error = function(e) { >>>> ???? gc() >>>> ???? lvec(...) # duplicated code >>>> ?? }) >>>> } >>>> >>>> e.g. try to open...
2018 Aug 07
0
Run garbage collector when too many open files
.... In this case that means, for example, that another package of mine using this package generates an error when its tests are run [2]. The simplest solution is to add some calls to gc() in my tests. But a more general/automatic solution would be nice. I thought about something in the lines of robust_lvec <- function(...) { tryCatch({ lvec(...) }, error = function(e) { gc() lvec(...) # duplicated code }) } e.g. try to open a file, when that fails call the garbage collector and try again. However, this introduces duplicated code (in this case only one line, but that can...
2018 Aug 07
0
[R-pkg-devel] Run garbage collector when too many open files
...n error when its tests are >>> run. >>> >>> The simplest solution is to add some calls to gc() in my tests. But a more >>> general/automatic solution would be nice. >>> >>> I thought about something in the lines of >>> >>> robust_lvec <- function(...) { >>> ?? tryCatch({ >>> ???? lvec(...) >>> ?? }, error = function(e) { >>> ???? gc() >>> ???? lvec(...) # duplicated code >>> ?? }) >>> } >>> >>> e.g. try to open a file, when that fails call the g...