<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 4:06 PM, Tim Keitt <span dir="ltr"><<a href="mailto:tkeitt@utexas.edu" target="_blank">tkeitt@utexas.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class="gmail-"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 2:55 PM, Avraham Adler <span dir="ltr"><<a href="mailto:avraham.adler@gmail.com" target="_blank">avraham.adler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id="gmail-m_8215008520940177597gmail-:hz" class="gmail-m_8215008520940177597gmail-a3s gmail-m_8215008520940177597gmail-aXjCH gmail-m_8215008520940177597gmail-m15b20c9ff56aa03a"> If so, do I add<br>
them asa regards the functions *I* wrote in lamw.cpp or as regards the<br>
function wrappers that Rcpp wrote and the .R files call in<br>
RcppExports.R?</div></blockquote></div><br></span>I'm a bit confused about this as well. My impression is that the only reason to register functions is so that *other* packages can call them. If you do not want to make them available, you don't need to register them. Or I could have that complete wrong.</div><div class="gmail_extra"><br></div><div class="gmail_extra">THK</div><div class="gmail_extra"><br></div><div class="gmail_extra">If you don't want to register anything, this snippet placed in init.c will get you past CRAN checks currently:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><table class="gmail-m_8215008520940177597gmail-highlight gmail-m_8215008520940177597gmail-tab-size gmail-m_8215008520940177597gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;color:rgb(36,41,46);font-family:-apple-system,system-ui,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-LC1" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">#<span class="gmail-m_8215008520940177597gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">include</span> <span class="gmail-m_8215008520940177597gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="gmail-m_8215008520940177597gmail-pl-pds" style="box-sizing:border-box"><</span>R.h<span class="gmail-m_8215008520940177597gmail-pl-pds" style="box-sizing:border-box">></span></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L2" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC2" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">#<span class="gmail-m_8215008520940177597gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">include</span> <span class="gmail-m_8215008520940177597gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="gmail-m_8215008520940177597gmail-pl-pds" style="box-sizing:border-box"><</span>Rinternals.h<span class="gmail-m_8215008520940177597gmail-pl-pds" style="box-sizing:border-box">></span></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L3" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC3" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">#<span class="gmail-m_8215008520940177597gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">include</span> <span class="gmail-m_8215008520940177597gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="gmail-m_8215008520940177597gmail-pl-pds" style="box-sizing:border-box"><</span>R_ext/Rdynload.h<span class="gmail-m_8215008520940177597gmail-pl-pds" style="box-sizing:border-box">></span></span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L4" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC4" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">
</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L5" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC5" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">R_CallMethodDef callMethods[]  = {{<span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">NULL</span>, <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">NULL</span>, <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">0</span>}};</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L6" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC6" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">R_CMethodDef cMethods[] = {{<span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">NULL</span>, <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">NULL</span>, <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">0</span>}};</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L7" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC7" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">
</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L8" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC8" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="gmail-m_8215008520940177597gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93)">void</span></td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L9" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC9" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"><span class="gmail-m_8215008520940177597gmail-pl-en" style="box-sizing:border-box;color:rgb(121,93,163)">R_init_myLib</span>(DllInfo *info)</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L10" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC10" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">{</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L11" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC11" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">  <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">R_registerRoutines</span>(info, cMethods, callMethods, <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">NULL</span>, <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">NULL</span>);</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L12" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC12" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">  <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">R_useDynamicSymbols</span>(info, <span class="gmail-m_8215008520940177597gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179)">FALSE</span>);</td></tr><tr style="box-sizing:border-box"><td id="gmail-m_8215008520940177597gmail-L13" class="gmail-m_8215008520940177597gmail-blob-num gmail-m_8215008520940177597gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-m_8215008520940177597gmail-LC13" class="gmail-m_8215008520940177597gmail-blob-code gmail-m_8215008520940177597gmail-blob-code-inner gmail-m_8215008520940177597gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">}
</td></tr></tbody></table><br clear="all"><div><div class="gmail-m_8215008520940177597gmail_signature"><div dir="ltr"><a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a></div></div></div>
</div></div>
</blockquote></div><br><div><div><div>Hello, Tim.<br><br></div>Thank you for the quick 
response. However, there are three packages which import the package, 
and one which links to it [1], which is why I have Rcpp-created headers in 
the /inst/include directory [2]. I do not want to do anything which jeopardizes 
the downstream users but I do want to be in compliance.<br><br></div>Thanks,<br><br></div>Avi<br><br><br>[1] <a href="https://cran.r-project.org/web/packages/lamW/index.html">https://cran.r-project.org/web/packages/lamW/index.html</a><br>[2] <a href="https://bitbucket.org/aadler/lamw/src/a3f5b043872b1761dd5140d77216842fcc3adad7/inst/include/">https://bitbucket.org/aadler/lamw/src/a3f5b043872b1761dd5140d77216842fcc3adad7/inst/include/</a><br></div></div>