Re: [R] source files in temp environment

2017-12-02 Thread Eric Berger
I totally agree with Duncan's last point. I find it hard to reconcile your early remarks (which indicate a deep knowledge of programming) with the idea that your code is not built up from combining small(ish) functions. Small functions would generally be considered best practices. Try searching on

Re: [R] source files in temp environment

2017-12-02 Thread Duncan Murdoch
On 02/12/2017 5:48 AM, Alexander Shenkin wrote: Hi all, I often keep code in separate files for organizational purposes, and source() that code from higher level scripts. One problem is that those sourced files often create temporary variables that I don't want to keep around. I could clean up