[R-pkg-devel] R package with external C++ library

Duncan Murdoch murdoch.duncan at gmail.com
Thu Aug 4 00:08:28 CEST 2016


On 03/08/2016 5:59 PM, Ege Rubak wrote:
>
>>> The main things seem to be related to (travis log is at
>>> https://travis-ci.org/spatstat/s2/jobs/149578339):
>>>
>>> 1. Deprecated C++ headers <ext/hash_set> and <ext/hash_map>.
>>>
>>> 2. Compiled code that calls entry points which might terminate R or
>>> write to stdout/stderr.
>>>
>>> Is it hopeless to get on CRAN with warnings like these?
>>
>> I don't set CRAN policy, but I would say yes.  Problem 1 limits your
>> package to systems using compilers that support those antiquated
>> headers; R tries very hard to be portable across many systems.  Problem
>> 2 makes R potentially unstable.
>>
> Thanks for the quick reply. The non-portability issue you mention has
> not shown up so far but I was actually fearing it would show up once I
> (or more likely CRAN) try to compile on solaris -- is there a way to
> test code on solaris without bothering the brave CRAN souls?

I don't know.


Anyway, I
> should probably start executing some sed commands and see if I can get
> rid of the problem in a fairly reproducible way.
> Regarding problem 2 even if I never use the part of the C++ code that
> writes to stdout etc. I guess it is impossible for CRAN to know this, so
> it makes sense for them to be safe rather than sorry?

Yes.

Duncan Murdoch



More information about the R-package-devel mailing list