<div dir="ltr">I had the same issue (RNGScope) and what worked for me (besides Dirk's clear explanations which I somehow missed) was to run Rcpp.package.skeleton() and compare what changed, which is exactly what Dirk mentioned above (the changes to NAMESPACE and DESCRIPTION). LinkingTo is still necessary (together with Imports) I believe (at least in my case).<br>


<br>Avraham<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 5, 2014 at 2:37 PM, Dan Tenenbaum <span dir="ltr"><<a href="mailto:dtenenba@fhcrc.org" target="_blank">dtenenba@fhcrc.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
<br>
----- Original Message -----<br>
> From: "Dirk Eddelbuettel" <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>><br>
> To: "Dan Tenenbaum" <<a href="mailto:dtenenba@fhcrc.org" target="_blank">dtenenba@fhcrc.org</a>><br>
> Cc: <a href="mailto:rcpp-devel@lists.r-forge.r-project.org" target="_blank">rcpp-devel@lists.r-forge.r-project.org</a><br>
> Sent: Wednesday, February 5, 2014 11:02:10 AM<br>
> Subject: Re: [Rcpp-devel] dataptr / char_get_string_elt not provided by package ‘Rcpp’<br>
><br>
><br>
> On 5 February 2014 at 10:45, Dan Tenenbaum wrote:<br>
> | A couple of Bioconductor packages have these errors:<br>
> |<br>
> | package: DOSE<br>
> |<br>
> | error:<br>
> |<br>
> | function ‘char_get_string_elt’ not provided by package ‘Rcpp’<br>
> | Execution halted<br>
> |<br>
> | package: GOSim<br>
> |<br>
> | error:<br>
> |<br>
> |  function ‘dataptr’ not provided by package ‘Rcpp’<br>
><br>
> See below.<br>
><br>
><br>
> | I see in<br>
> | <a href="https://github.com/RcppCore/Rcpp/issues/92" target="_blank">https://github.com/RcppCore/Rcpp/issues/92</a><br>
><br>
> That ticket is __closed__ so why do you look there?<br>
><br>
> Logs for Rcpp testing are at <a href="https://github.com/RcppCore/rcpp-logs" target="_blank">https://github.com/RcppCore/rcpp-logs</a><br>
> Poke around there, particular in the status/ directory<br>
><br>
> All that was communicated here.<br>
><br>
> | Does this indicate the issue has not been resolved? Or is there a<br>
> | workaround?<br>
><br>
> In most cases, yes. As shown in the repo and here.<br>
><br>
> To sum up again:<br>
><br>
>   i)  Either one of<br>
><br>
>          function 'enterRNGScope' not provided by package 'Rcpp'<br>
><br>
>          function ‘char_get_string_elt’ not provided by package<br>
>          ‘Rcpp’<br>
><br>
>       can be fixed by strengthening the Rcpp initialization.<br>
><br>
>   ii) For that I provided patches doing this, noted it in the<br>
>   announcements<br>
>       and release notes.<br>
><br>
>       You now need<br>
><br>
>           DESCRIPTION:   Imports: Rcpp                 instead of<br>
>           Depends:<br>
><br>
>           NAMESPACE:     importFrom(Rcpp, evalCpp)<br>
><br>
>       Sometimes a simple import(Rcpp) works, the importFrom(Rcpp,<br>
>       evalRcpp)<br>
>       is better. It can use any symbol, evalCpp is nice and short.<br>
><br>
> That should do.  The odd thing is that packages sometimes pass (which<br>
> is why<br>
> the defect rate was down to < 10 when we released -- count based on<br>
> my<br>
> machine) but fail on other machines.<br>
><br>
> In any case, the fix for i) above is to do what is in ii)<br>
><br>
> Ok?<br>
><br>
> In your particular case, you may also consider picking up the phone<br>
> and<br>
> making an in-house call to Kevin who tested all of BioC prior to<br>
> release as<br>
> well. And that too was noted in my release announcement.<br>
><br>
<br>
</div></div>Indeed, you guys have done a really good job documenting all your work. You have to forgive me, as I was only told about all these changes recently, and I did not follow all the communication as it was happening, but had to come upon it later where it wasn't always clear which document was the canonical one to read.<br>



<br>
Anyway, your suggestion did the trick for both packages. Thanks!<br>
<span><font color="#888888">Dan<br>
</font></span><div><div><br>
<br>
> Dirk<br>
><br>
> --<br>
> Dirk Eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></div></div></blockquote></div><br></div></div>