<br><font size=2 face="sans-serif">Hi Davor, Dirk.</font>
<br>
<br><font size=2 face="sans-serif">Thanks a lot for your help. I tried
the way Dirk are suggesting and it appears to work fine. The application
at all is not working yet, i don't know exactly </font>
<br><font size=2 face="sans-serif">what is happening, so i did a consultation
to the NOMAD developer. But i believe that the problem of using the R object
into a method is solved. </font>
<br>
<br><font size=2 face="sans-serif">Please, find attached a simplified example
of the code. </font>
<br>
<br><font size=2 face="sans-serif">If you see something weird, please don't
hesitate in writing to the list. </font>
<br>
<br><font size=2 face="sans-serif">Best regards. </font>
<br>
<br><font size=2 face="sans-serif">César </font>
<br>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Davor Cubranic &lt;cubranic@stat.ubc.ca&gt;</b>
</font>
<br><font size=1 face="sans-serif">Enviado por: rcpp-devel-bounces@r-forge.wu-wien.ac.at</font>
<p><font size=1 face="sans-serif">17/03/2011 07:51 p.m.</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Para</font></div>
<td valign=top><font size=1 face="sans-serif">Dirk Eddelbuettel &lt;edd@debian.org&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">rcpp-devel@r-forge.wu-wien.ac.at</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Asunto</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [Rcpp-devel] R Embedded
in a class function</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On 2011-03-17, at 3:31 PM, Dirk Eddelbuettel wrote:<br>
<br>
&gt; | And it so happens that I just wrote an example of instantiating
RInside and<br>
&gt; | passing to Qt so that you'd get 'R inside Qt'. &nbsp;That is now
in SVN for<br>
&gt; | RInside but I haven't even gotten around to writing a short blog
post about<br>
&gt; | it. &nbsp;Maybe on the weekend...<br>
&gt; <br>
&gt; I forgot to give the URL:<br>
&gt; <br>
&gt; https://r-forge.r-project.org/scm/viewvc.php/pkg/inst/examples/qt/?root=rinside<br>
&gt; <br>
<br>
But your code still creates R instance in &quot;main&quot;, which it then
passes to the QtDensity instance (a subclass of QtMainWindow). OTOH, once
the R instance is stored as a member variable of QtDensity, it *is* used
in QtDensity's methods. <br>
<br>
But I'm quibbling -- it's a good pattern to follow, so Cesar could perhaps
just adapt it to his code.<br>
<br>
Davor<br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
Rcpp-devel@lists.r-forge.r-project.org<br>
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel<br>
</tt></font>
<br>