When I run my R script, it gives me an error:
Error in list.files(lib, pattern = paste0("^", pkg, "$"), full.names = TRUE) :
invalid 'pattern' regular expression
What does this error mean? the link to the script is: http://mzmatch.sourceforge.net/metabolomics/Processing_Code.R
But I changed few lines at the beginning:
library ("D:\\java projects\\RScriptRunning\\R\\win-library\\2.15\\mzmatch.R")
mzmatch.init (6000)
setwd ("D:\\R_Script\\raw")
pkg)pkgvariable contained a string that doesn't make a legitimate regular expression (see?regexp), but we can't really say much without context.