This is a test version of Biostars. For the public version, visit https://www.biostars.org.
problems with mclapply function

I every body, I'm trying to analyzed some data. I used the function mclapply ad follow

res <- mclapply(dir(pattern="*.txt", full.names=TRUE), function(fil){
                     read.delim(fil, header=FALSE, stringsAsFactors=FALSE)
                 }, mc.cores=16)

And I got the follow error

Error: could not find function "mclapply"

does any body know what's going on?

Thanks!

rna-seq lapply

1 answer

did u include the parallel library?

library(parallel)

not, of course.... Thank you and sorry for this stupid question!

Log in to answer this question.