Last updated on 2025-02-16 08:51:32 CET.
Package | ERROR | WARN | OK |
---|---|---|---|
annmatrix | 2 | 13 | |
basetheme | 15 | ||
matrixTests | 1 | 14 |
Current CRAN status: WARN: 2, OK: 13
Version: 0.1.2
Check: Rd \usage sections
Result: WARN
Bad \usage lines found in documentation object 'annmatrix':
<unescaped bksl>method{@}{annmatrix}(object, name)
<unescaped bksl>method{@}{annmatrix}(object, name) <- value
Functions with \usage entries need to have the appropriate \alias
entries, and all their arguments documented.
The \usage entries must correspond to syntactically valid R code.
See chapter ‘Writing R documentation files’ in the ‘Writing R
Extensions’ manual.
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64
Current CRAN status: OK: 15
Current CRAN status: ERROR: 1, OK: 14
Version: 0.2.3
Check: tests
Result: ERROR
Running ‘andersondarling_behaviour.r’ [0s/0s]
Running ‘andersondarling_correctness.r’ [1s/1s]
Running ‘andersondarling_errors.r’ [0s/0s]
Running ‘andersondarling_warnings.r’ [0s/0s]
Running ‘bartlett_behaviour.r’ [0s/0s]
Running ‘bartlett_correctness.r’ [2s/4s]
Running ‘bartlett_errors.r’ [0s/0s]
Running ‘bartlett_warnings.r’ [0s/0s]
Running ‘brownforsythe_behaviour.r’ [0s/0s]
Running ‘brownforsythe_correctness.r’ [7s/13s]
Running ‘brownforsythe_errors.r’ [0s/0s]
Running ‘brownforsythe_warnings.r’ [0s/0s]
Running ‘cor_pearson_behaviour.r’ [0s/0s]
Running ‘cor_pearson_correctness.r’ [1s/1s]
Running ‘cor_pearson_errors.r’ [0s/0s]
Running ‘cor_pearson_warnings.r’ [0s/0s]
Running ‘cosinor_behaviour.r’ [0s/0s]
Running ‘cosinor_correctness.r’ [1s/2s]
Running the tests in ‘tests/cosinor_correctness.r’ failed.
Complete output:
> library(matrixTests)
>
> #--- functions -----------------------------------------------------------------
>
> cosinor_cosinor <- function(mat, time, per) {
+ stopifnot(ncol(mat) == length(time))
+ if(is.vector(mat)) mat <- matrix(mat, nrow=1)
+ n <- m <- amp <- acr <- dfm <- dfr <- rsq <- f <- p <- numeric(nrow(mat))
+
+ for(i in 1:nrow(mat)) {
+ dat <- data.frame(x=mat[i,], t=time)
+ dat <- dat[!is.na(dat$x) & !is.na(dat$t),]
+ res <- cosinor::cosinor.lm(x ~ time(t), data=dat, period=per)
+
+ n[i] <- nrow(dat)
+ m[i] <- res$coefficients[1]
+ amp[i] <- res$coefficients[2]
+ acr[i] <- abs(cosinor2::correct.acrophase(res) / pi * (per/2))
+ dfm[i] <- cosinor2::cosinor.detect(res)[2]
+ dfr[i] <- cosinor2::cosinor.detect(res)[3]
+ rsq[i] <- cosinor2::cosinor.PR(res)[[2]]
+ f[i] <- cosinor2::cosinor.detect(res)[1]
+ p[i] <- cosinor2::cosinor.detect(res)[4]
+ }
+
+ data.frame(obs=n, mesor=m, amplitude=amp, acrophase=acr, rsquared=rsq,
+ df.model=dfm, df.residual=dfr, statistic=f,
+ pvalue=p, period=per
+ )
+ }
>
>
> #--- montecarlo ----------------------------------------------------------------
>
> # equally spaced 10 time points, period = 10
> X <- matrix(rnorm(10000), ncol=10)
> t <- -5:4
> res1 <- cosinor_cosinor(X, t, 10)
Error in loadNamespace(x) : there is no package called 'cosinor2'
Calls: cosinor_cosinor ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Flavor: r-devel-macos-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.