R/test.R

Defines functions test9 test8 test7 test6 test5 test4 test3 test2 test

Documented in test test2 test8

test <- function() {
    TRUE
    cat("test function")
}

test2 <- function(){

    #x = c(10,20)
    x <- 20
    myHelper(x)
}

test3 <- function(){

    mat1 <- matrix(seq_len(20), nrow=5)
    x <- list(orig = mat1, T = t(mat1))
    x$T
}

test4 <- function(){
    x <- T
    x
}

test5 <- function(){
    T <- "whatsinaname"
    myX <- seq_len(2)
    names(myX) <- c(T , "rose")
    myX[ T ] 
}

test6 <- function(){
    x <- "alotoffunctioncode"
    TRUE
}

test7 <- function(){
    set.seed(1)
}

test8 <- function(x=2){

    if (all(c(1,2,3) %in% x)){
        # should produce error
        x + 4
    }
}

test9 <- function(){

    Sys.sleep(700)
    return(TRUE)
}
Bioconductor/spbtest3 documentation built on July 2, 2022, 1:53 a.m.