<div dir="ltr"><div dir="ltr"><div dir="ltr">Yes, thanks, I did at least manage to read through the FAQ, but, unfortunately, none of the mentions of 'plugins' was helpful for my questions. I can search through the source to find the plugins that come with Rcpp, but I'm not familiar enough with the necessary mechanisms to know what hooks to look for or use to be able to list currently registered plugins.<div><br></div><div>An issue is that I can't get at least some plugins to work with cppFunction. For instance:</div><div>library(Rcpp)</div><div>library(RcppArmadillo)</div><div>library(inline)</div><div>cppFunction('//Anything', depends="RcppArmadillo", plugin="RcppArmadillo", verbose=TRUE)<br></div><div><br></div><div>just gives error:</div><div><div>Error in .findPlugin(pluginName) : </div><div>  Inline plugin 'RcppArmadillo' could not be found within the Rcpp package. You should be sure to call registerPlugin before using a plugin.</div></div><div><br></div><div>Thanks,</div><div>Mark</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 1, 2018 at 9:18 AM Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 30 November 2018 at 21:49, M A wrote:<br>
| Is there a standard way to list what plugins are available in Rcpp? And,<br>
| given a plugin, how do I find out what exactly is in that plugin? I did<br>
| find in the inline package inline::getPlugin() for the second of these<br>
| questions, but it does not work on Rcpp plugins (e.g. the openmp plugin)<br>
| and I can't find an equivalent in Rcpp. These seem like they should be easy<br>
| questions with obvious solutions, but I can't find anything. Sorry if I did<br>
| miss something obvious.<br>
<br>
Have you found this obvious answer yet:<br>
<br>
   Rcpp FAQ Question 3.6<br>
   "How do I write a plugin for inline and/or Rcpp Attributes"<br>
<br>
My pdf reader shows me 36 hits for 'plugin' in that Rcpp FAQ document.<br>
<br>
As for 'what exists': there is no central registry as packages can bring<br>
their own; the mechanism is such that when a package loads it can register<br>
upon load.  You could use the same hooks to a) scan all your installed (but<br>
not yet loaded) packages and b) list currently registered plugins. I don't<br>
think anybody has written such a helper yet.<br>
<br>
As for 'what is in it':  "Use the source, Luke." <br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</blockquote></div>