Re: [Rcpp-devel] How to use sourceCpp() to call a file with '.hpp'

2017-01-19 Thread Dirk Eddelbuettel
On 20 January 2017 at 00:10, Kokia Z wrote: | I have found a .hpp file called fn_kron.hpp, and I have learned that sourceCpp | () can be used to call c++ file to R. But when I wrote in this way, it returned | the filename must be '.cpp', so how could I use sourceCpp to call this package? You ha

[Rcpp-devel] How to use sourceCpp() to call a file with '.hpp'

2017-01-19 Thread Kokia Z
I have found a .hpp file called fn_kron.hpp, and I have learned that sourceCpp() can be used to call c++ file to R. But when I wrote in this way, it returned the filename must be '.cpp', so how could I use sourceCpp to call this package? Thanks for your help. :)___