I'm preparing the package in R language for the CRAN submission. However, I've to calculate the p-value for the one-sample Kolmogorov-Smirnow test using the external call to the function C_pKolmogorov2x
from the stats package, i.e.
1- .Call(stats:::C_pKolmogorov2x,PACKAGE = "stats", criticalValue, n1)
During checking and building my package it causes warnings:
Foreign function call to a base package:
.Call(stats:::C_pKolmogorov2x, ..., PACKAGE = "stats")
Packages should not make .C/.Call/.External/.Fortran calls to a base
package. They are not part of the API, for use only by R itself and
subject to change without notice.
Because I've got a final value of the test statistic, to obtain the p-value I can't use ks.test
, which can be applied only if we have a whole sample.
Does anybody know the other way (e.g., function from other package to use directly) to calculate this p-value using cdf for the K-S one-sample test? Or maybe the warning will not cause rejecting my package from CRAN? Thank you in advance for your help!
I've tried to found other packages intended to calculate the above-mentioned p-value. However, without success.