inst/systemTest/pcor/pcor_sys_test.R

library("sprint")
library("ff")

args <- commandArgs(trailingOnly = TRUE)
rows<- as.numeric(args[1])
print("number of rows")
print(rows)
cols<- as.numeric(args[2])
print("number of columns")
print(cols)
filename<- args[3]
print("filename")
print(filename)


system(paste("rm ",filename))

my.matrix <- matrix(rnorm(500000,9,1.7), nrow=rows, ncol=cols)

genecor <- pcor( t(my.matrix), filename_  =filename )

print(system(paste("ls -lh|grep ",filename)))
system(paste("rm ",filename))

Try the sprint package in your browser

Any scripts or data that you put into this service are public.

sprint documentation built on May 30, 2017, 8:25 a.m.