0

In my previous question My previous question which may be relevant to this problem, I called wilcox.test in Rcpp.

(wilcox.test is a default method in R and it was written in R, the source code can be found here: Source code of wilcox.test in R)

The speed of the code is very slow because of Embedding R code in C++. I was suggested to write wilcox.test in Rcpp from the ground up.

Currently, I found an R package BioQC which was written in Rcpp and it offered a more efficient way for doing Wilcoxon-Mann-Whitney rank sum test.

I am curious that since BioQC was written in Rcpp, is it possible to transfer their source code into my Rcpp code? What kind of file should I look into?

Here is their souce code which is relevant to Wilcoxon-Mann-Whitney rank sum test:BioQC source code

I am interested in the first function "wmw_test_stat", how should I transfer it into my Rcpp file?(I guess that just copy that code into Rcpp is obviously not enough).

Thank you for your help!

Song Tang
  • 9
  • 3
  • The technical answer is that you _properly exported_ functions from one package can be called from another. But that depends on whether BioQC makes it code callable from another package. Details in the Writing R Extensions manual. – Dirk Eddelbuettel Jun 16 '17 at 12:51
  • Hi @DirkEddelbuettel, thanks a lot! I will have a look at that. – Song Tang Jun 18 '17 at 07:41

0 Answers0