[R] Nested source()s

From: Murray Jorgensen <maj_at_stats.waikato.ac.nz>
Date: Mon 12 Jul 2004 - 19:00:44 EST


I had an error message while running a macro from Yudi Pawitan's web site:

> source("ex2-13.r")

Error in parse(file, n, text, prompt) : syntax error on line 2

Inspecting ex2-13.r I found that the error was generated by another source() command.

Clearly R does not like nested source()s, which is fair enough when you think about it. Still it's something that you might want to do. Does anyone know how to get achieve the substance of what nested source() commands would give you?

Murray Jorgensen

-- 
Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj@waikato.ac.nz                                Fax 7 838 4155
Phone  +64 7 838 4773 wk    +64 7 849 6486 home    Mobile 021 1395 862

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Mon Jul 12 19:10:57 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:35:35 EST