[Rcpp-devel] sourceCpp issue: code vs. file

Hadley Wickham h.wickham at gmail.com
Thu May 23 16:03:06 CEST 2013


>> R governs the behaviour of R CMD <whatever> based on the extension.
>>
>> The .cxx form was /never/ supported by R as far as I know.
>
> Indeed. According to "Package subdirectories" in Writing R Extensions
> (http://cran.r-project.org/doc/manuals/R-exts.html#Package-subdirectories)
> the only supported extensions are .c, .cc, .cpp, .f, .f90, .f95, .m, and
> .mm.

So maybe sourceCpp could provide a warning if the extension is not in that list?

Hadley

--
Chief Scientist, RStudio
http://had.co.nz/


More information about the Rcpp-devel mailing list