Package which is only available in source form, and may need compilation of C/C++/Fortran:
Do you want to attempt to install these from sources? (Yes/no/cancel) Yes
installing the source package ‘WGCNA’
Content type 'application/x-gzip' length 1168289 bytes (1.1 MB)
downloaded 1.1 MB
* installing *source* package ‘WGCNA’ ...
** using staged installation
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DWITH_THREADS -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c corFunctions-utils.c -o corFunctions-utils.o
clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot]
corFunctions-utils.c:16:10: fatal error: 'stdio.h' file not found
1 error generated.
make: *** [corFunctions-utils.o] Error 1
ERROR: compilation failed for package ‘WGCNA’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/WGCNA’
Warning in install.packages :
installation of package ‘WGCNA’ had non-zero exit status
The downloaded source packages are in
If you want to install source packages on MacOS, you have to also have the compilers available, which is not something that happens by default. For R-4.0.0 (which you should be using, but without output from running sessionInfo, it's a mystery to us) you can just use the XCode tools.
That said, it does appear that there is a MacOS binary for WGCNA at CRAN. And additionally, WGCNA isn't actually a Bioconductor package (although people do seem to post about it here), so you should actually be asking about it on email@example.com.