<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">Thanks Jim, Mollie and Steve. I was actually thinking of something a little more flexible than functions or including cpp code. What I was thinking was something like source("filename.tpl") such that it could be a whole function, part of a function or even parts of data or parameter or other sections. Sounds like that isn't currently possible. I'll just create something in R that pre-processes the file to allow that structure.</span><br>
<div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">Thanks for all the quick responses. </span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">regards --jeff</span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 10:58 AM, Mollie Brooks <span dir="ltr"><<a href="mailto:mbrooks@ufl.edu" target="_blank">mbrooks@ufl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jeff,<br>
It is possible to include code in the GLOBALS_SECTION<br>
<br>
Here's an example<br>
GLOBALS_SECTION<br>
        #include "/Users/molliebrooks/Desktop/Community Dynamics Postdoc/ADMB/kronecker.cpp"<br>
<br>
Hope that answers your question.<br>
cheers,<br>
Mollie<br>
<span class="HOEnZb"><font color="#888888"><br>
Mollie Brooks<br>
Postdoctoral Researcher, Ponciano Lab<br>
Biology Department, University of Florida<br>
<a href="http://people.biology.ufl.edu/mbrooks" target="_blank">http://people.biology.ufl.edu/mbrooks</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 22 Feb 2013, at 1:24 PM, Jeff Laake wrote:<br>
<br>
> Is there any way to include source into a TPL file. I know of #include<> for c++ code but am I overlooking some syntax in the documentation.  I tried that with a .tpl and it didn't work. What I want to do is to have a common part of a TPL in its own file say common.tpl and then just have an include <common.tpl>  in the TPL files that use it.  If not currently available, I think this would make a nice addition to avoid replicating code.<br>

><br>
> I could probably do it in R using R2admb but before I go down that route, I thought I'd ask.<br>
><br>
> regards --jeff<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>
> <a href="http://lists.admb-project.org/mailman/listinfo/users" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br>
</div></div></blockquote></div><br></div>