Back to Multiple platform build/check report for BioC 3.11
ABCDEFGHIJKLMNOPQR[S]TUVWXYZ

CHECK report for SVAPLSseq on malbec2

This page was generated on 2020-10-17 11:55:53 -0400 (Sat, 17 Oct 2020).

TO THE DEVELOPERS/MAINTAINERS OF THE SVAPLSseq PACKAGE: Please make sure to use the following settings in order to reproduce any error or warning you see on this page.
Package 1764/1905HostnameOS / ArchINSTALLBUILDCHECKBUILD BIN
SVAPLSseq 1.14.0
Sutirtha Chakraborty
Snapshot Date: 2020-10-16 14:40:19 -0400 (Fri, 16 Oct 2020)
URL: https://git.bioconductor.org/packages/SVAPLSseq
Branch: RELEASE_3_11
Last Commit: 8031d54
Last Changed Date: 2020-04-27 15:00:44 -0400 (Mon, 27 Apr 2020)
malbec2 Linux (Ubuntu 18.04.4 LTS) / x86_64  OK  OK [ ERROR ]
tokay2 Windows Server 2012 R2 Standard / x64  OK  OK  ERROR  NA 
machv2 macOS 10.14.6 Mojave / x86_64  OK  OK  ERROR  OK 

Summary

Package: SVAPLSseq
Version: 1.14.0
Command: /home/biocbuild/bbs-3.11-bioc/R/bin/R CMD check --install=check:SVAPLSseq.install-out.txt --library=/home/biocbuild/bbs-3.11-bioc/R/library --no-vignettes --timings SVAPLSseq_1.14.0.tar.gz
StartedAt: 2020-10-17 05:56:33 -0400 (Sat, 17 Oct 2020)
EndedAt: 2020-10-17 05:59:04 -0400 (Sat, 17 Oct 2020)
EllapsedTime: 151.5 seconds
RetCode: 1
Status:  ERROR 
CheckDir: SVAPLSseq.Rcheck
Warnings: NA

Command output

##############################################################################
##############################################################################
###
### Running command:
###
###   /home/biocbuild/bbs-3.11-bioc/R/bin/R CMD check --install=check:SVAPLSseq.install-out.txt --library=/home/biocbuild/bbs-3.11-bioc/R/library --no-vignettes --timings SVAPLSseq_1.14.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory ‘/home/biocbuild/bbs-3.11-bioc/meat/SVAPLSseq.Rcheck’
* using R version 4.0.3 (2020-10-10)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* using option ‘--no-vignettes’
* checking for file ‘SVAPLSseq/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘SVAPLSseq’ version ‘1.14.0’
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘SVAPLSseq’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking ‘build’ directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... ERROR
Running examples in ‘SVAPLSseq-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: SVAPLSseq-package
> ### Title: SVAPLSseq: An R package to adjust for the hidden factors of
> ###   variability in differential gene expression studies based on RNAseq
> ###   data.
> ### Aliases: SVAPLSseq-package SVAPLSseq
> ### Keywords: models
> 
> ### ** Examples
> 
> ##Loading the Simulated Data
> data(sim.dat)
> 
> ## Fitting a linear model with the surrogate variables and detecting the differentially expressed genes
> group = as.factor(c(rep(1, 10), rep(-1, 10)))
> sv <- svplsSurr(dat = sim.dat, group = group, surr.select = "automatic")
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
SVAPLSseq
 --- call from context --- 
svplsSurr(dat = sim.dat, group = group, surr.select = "automatic")
 --- call from argument --- 
if (class(dat) == "matrix") data = dat
 --- R stacktrace ---
where 1: svplsSurr(dat = sim.dat, group = group, surr.select = "automatic")

 --- value of length: 2 type: logical ---
[1]  TRUE FALSE
 --- function from context --- 
function (dat, group, controls = NULL, phi = function(x) log(x + 
    const), const = 1, pls.method = "oscorespls", max.surrs = 3, 
    opt.surrs = 1, surr.select = c("automatic", "manual"), cutoff = 10^-7, 
    parallel = FALSE, num.cores = NULL, plot = FALSE) 
{
    if (class(dat) == "matrix") 
        data = dat
    if (class(dat) == "SummarizedExperiment") 
        data = assay(dat)
    if (class(dat) == "DGEList") 
        data = dat$counts
    Y = phi(data)
    if (parallel) {
        e = unlist(mclapply(1:nrow(Y), function(u) lm(Y[u, ] ~ 
            group)$resid, mc.cores = num.cores))
    }
    if (!parallel) 
        e = unlist(lapply(1:nrow(Y), function(u) lm(Y[u, ] ~ 
            group)$resid))
    E = matrix(e, nrow(Y), ncol(Y), byrow = TRUE)
    if (!is.null(controls)) 
        pls.fit = mvr(t(Y) ~ t(Y[controls, ]), ncomp = max.surrs, 
            method = pls.method)
    if (is.null(controls)) 
        pls.fit = mvr(t(E) ~ t(Y), ncomp = max.surrs, method = pls.method)
    sc = scores(pls.fit)
    surr.effect = paste("+", paste("sc[, ", paste(as.character(1:ncol(sc)), 
        "]", sep = ""), sep = "", collapse = "+"), sep = "")
    if (surr.select == "automatic") {
        if (!is.null(controls)) 
            pvals = anova(lm(as.formula(paste("svd(Y[controls, ])$v[, 1] ~", 
                surr.effect, sep = " "))))[, 5]
        if (is.null(controls)) 
            pvals = anova(lm(as.formula(paste("svd(E)$v[, 1] ~", 
                surr.effect, sep = " "))))[, 5]
        index = which(pvals < cutoff)
    }
    if (surr.select == "manual") 
        index = opt.surrs
    if (length(index) == 0) 
        stop("No Significant Surrogate Variables")
    if (length(index) > 0) {
        surr = sc[, index]
        if (length(index) == 1) 
            vars = var(surr)
        if (length(index) > 1) 
            vars = apply(surr, 2, var)
        prop.vars = vars/sum(vars)
        if (plot == TRUE) {
            surr.df = as.data.frame(surr[, 1:max.surrs])
            colnames(surr.df) = paste("surr", as.character(1:max.surrs), 
                sep = "")
            grp = factor(colnames(surr.df), levels = colnames(surr.df))
            bp.df = data.frame(grp, prop.vars)
            bp <- qplot(grp, data = bp.df, geom = "bar", weight = prop.vars) + 
                scale_x_discrete("Surrogate Variable") + scale_y_continuous("Explained Variance Proportion")
            bp + theme(axis.text.x = element_text(angle = 0, 
                hjust = 1))
        }
        res = new("svplsSurr", surr = surr, prop.vars = prop.vars)
    }
    return(res)
}
<bytecode: 0x55d010bdff80>
<environment: namespace:SVAPLSseq>
 --- function search by body ---
Function svplsSurr in namespace SVAPLSseq has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... OK
* checking running R code from vignettes ... SKIPPED
* checking re-building of vignette outputs ... SKIPPED
* checking PDF version of manual ... OK
* DONE

Status: 1 ERROR
See
  ‘/home/biocbuild/bbs-3.11-bioc/meat/SVAPLSseq.Rcheck/00check.log’
for details.


Installation output

SVAPLSseq.Rcheck/00install.out

##############################################################################
##############################################################################
###
### Running command:
###
###   /home/biocbuild/bbs-3.11-bioc/R/bin/R CMD INSTALL SVAPLSseq
###
##############################################################################
##############################################################################


* installing to library ‘/home/biocbuild/bbs-3.11-bioc/R/library’
* installing *source* package ‘SVAPLSseq’ ...
** using staged installation
** R
** data
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (SVAPLSseq)

Tests output


Example timings

SVAPLSseq.Rcheck/SVAPLSseq-Ex.timings

nameusersystemelapsed