<div dir="ltr">Dear Dirk,<div><br></div><div>Thank you for the prompt answer.</div><div>Currently all the C++ functions with [[Rcpp::export]] tag are exposed to me by `devtools::load_all()` in the dev process. But some of them are only useful in other functions and undesired in the interactive environment. So I wondered if by any chance it is possible to control the level of exposure. It is not a big problem. Good to know the answer is no.</div><div><br></div><div>Best,</div><div>Watal</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 4, 2019 at 8:49 PM Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 4 February 2019 at 16:45, Watal M. Iwasaki wrote:<br>
| Hi all,<br>
| <br>
| Adding `[[Rcpp::export]]` tag to a package function leads to the following<br>
| outcomes:<br>
| <br>
| 1. Definition of "RcppExport SEXP _mypkg_myfun()" in RcppExports.cpp (hence<br>
| in dll)<br>
| 2. Definition of "myfun() {.Call(`_mypkg_myfun`)}" in RcppExports.R<br>
| <br>
| It is totally fine. Just out of curiosity, is it possible to suppress the<br>
| latter reaction and get only `_mypkg_myfun` for .Call-ing?<br>
<br>
Not currently, and why would you want that?<br>
<br>
All those R functions do really is set up .Call() for you -- as well as we<br>
can with proper registration and no lookup.<br>
<br>
You could post-process and remove RcppExports.R, and you could also use Rcpp<br>
and all it does without ever calling compileAttributes().<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Watal M. Iwasaki / 岩嵜 航<br>SOKENDAI, The Graduate University for Advanced Studies,<br>Hayama, Kanagawa 240-0193, Japan<br>+81-46-858-1576<br><a href="https://heavywatal.github.io/" target="_blank">https://heavywatal.github.io/</a></div></div>