sourceWithProgress() and nested R scripts

It looks like sourceWithProgress() creates a fresh clean environment in which to source the R script, which seems like a good idea. However, what if the script itself sources other scripts? By default, the child scripts will use the global environment, not the environment that sources the parent script:

I believe this might be affecting

and

1 Like

Would you mind filing this as a bug report at https://github.com/rstudio/rstudio/issues? It sounds like this is indeed something we should attempt to properly handle.

1 Like

Sure, I just submitted one here.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.