I am trying to run computeMatrix from the package deepTools in a R script using system().
The following command gets this error message.
system('computeMatrix --help')
sh: computeMatrix: command not found
Warning message:
In system("computeMatrix --help") : error in running command
However, if I run the same command in the terminal everthing works fine.
sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib