WGCNA Package in R

Without a reprex (see the FAQ). It's hard to see what's going on. If the error arises early on it may be due to

which specifies no separator. Try omitting sep=""