Hi<br>I very much like the Don't Repeat Yoursels principle behind inlinedocs and am thankful to use it.<br>To do so there are still some obstacles to be overcome however.<br>Hopefully somebody can help me there.<br><br>
Here comes the problem:<br>Inlinedocs raises an error message when confronted with the following piece of code:<br><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)">setClass("Trajectories", # a class that meausures</span><br style="color:rgb(51,102,255)">
<span style="color:rgb(51,102,255)">### This class serves</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> representation(</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> times="numeric", ##<< bal</span><br style="color:rgb(51,102,255)">
<span style="color:rgb(51,102,255)"> traj="matrix" ##<< bla</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> )</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)">)</span><br style="color:rgb(51,102,255)">
<span style="color:rgb(51,102,255)">setMethod(</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> f= "plot",</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> signature= "Trajectories",</span><br style="color:rgb(51,102,255)">
<span style="color:rgb(51,102,255)"> definition=function (x,y,...){</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> matplot(x@times,t(x@traj),xaxt="n",type="l",ylab= "",xlab="", pch=1)</span><br style="color:rgb(51,102,255)">
<span style="color:rgb(51,102,255)"> axis(1,at=x@times)</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> }</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)">)</span><br style="color:rgb(102,204,204)">
<br>The message is:<br><span style="color:rgb(51,102,255)">extra.code.docs prefixed.lines Error in UseMethod("combine") : </span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)"> no applicable method for 'combine' applied to an object of class "NULL"</span><br style="color:rgb(51,102,255)">
<span style="color:rgb(51,102,255)">Calls: package.skeleton.dx ... apply.parsers -> combine -> combine.list -> combine</span><br style="color:rgb(51,102,255)"><span style="color:rgb(51,102,255)">Execution halted</span><br style="color:rgb(51,102,255)">
<br>without the setMethod(...) part everything woks fine as in the "sliiy" example.<br><br>This leads me to the following questions.<br><br><ol><li>At the moment I use <b>package.skeleton.dx</b> to produce the documentation, which fails with the above message.<br>
Is there a possibility to avoid this kind of problem with a smarter call? <br>(For instance applying inlinedocs only to <br>those files known to have no problems)<br></li><li>If I have to change the code of the inlinedocs package. How would you suggest to tackle the problem with minimum effort.</li>
<ol><li>write a new <b>package.skeleton.dx </b>with an additional argument describing files that should be excluded</li>
<li>change a parser (which one?) so that setMethod( ) is ignored ?<br></li><li>...</li></ol></ol>Thanks in advance<br>Markus<br><br>p.s. I am quite new to R ;-)<br><br><br>