[Bioc-devel] BiocParallel: Best standards for passing locally assigned variables/functions, e.g. a bpExport()?

luke-tierney at uiowa.edu luke-tierney at uiowa.edu
Tue Nov 5 17:42:21 CET 2013

The 'foreach' framework does this sort of analysis using codetools at
least in part. You may be able to build on what they have.


On Mon, 4 Nov 2013, Ryan wrote:

> On 11/4/13, 11:05 AM, Gabriel Becker wrote:
>> As a side note, I'm not sure that existence of a symbol is sufficient (it
>> certainly is necessary). What about situations where the symbol exists but
>> is stale compared to the value in the parent? Are we sure that can never
>> happen?
> I think this is a different issue. We want to detect when a function depends 
> on variables outside that function in the user's workspace, or variables 
> defined in a pacakge that the user has loaded. I think we can assume that R 
> child processes will be of the same version with the same set of installed 
> packages, so package-defined variables will not have different values in 
> child processes. For user variables, I think the goal should be to prevent 
> (or at least highly discourage) dependencies on them entirely, so I don't 
> think it matters what their value may be in the child. I realize this is 
> somewhat counter to the question that started this thread, which was about 
> exporting variables to the children, but I think it is the most 
> straightforward approach. As I believe someone noted earlier in the thread, 
> Henrik's original problem of a recursive function is properly solved by using 
> the "Recall" function.
> -Ryan
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel

Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:   luke-tierney at uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu

More information about the Bioc-devel mailing list