Re: [R] require() but for source()d files

2014-08-25 Thread Ivan Calandra
Thank you Henrik, that's exactly what I'm looking for! Ivan -- Ivan Calandra University of Franche-Comté Laboratoire Chrono-Environnement Bureau ATER -107L 16, Route de Gray 25030 Besançon Cedex, France ivan.calan...@univ-fcomte.fr +33 (0) 381 66 20 60 http://chrono-environnement.univ-fcomte.fr/s

Re: [R] require() but for source()d files

2014-08-21 Thread Henrik Bengtsson
On Aug 21, 2014 7:40 AM, "Ivan Calandra" wrote: > > Dear useRs, > > I'm looking for something like require() but which will work on source()d files. > > I have a .R file with lots of functions and I'm writing a new function (say, 'foo') that depends on the functions from this file. > > Until now,

[R] require() but for source()d files

2014-08-21 Thread Ivan Calandra
Dear useRs, I'm looking for something like require() but which will work on source()d files. I have a .R file with lots of functions and I'm writing a new function (say, 'foo') that depends on the functions from this file. Until now, I have always source()d the .R file before running 'foo'.