初识R语言,安装完Rstudio完后想调用别人的包出现
files2SpectraObject(
gr.crit = c("a","b","c"),#编写红外的编号
gr.cols = c("#E18727FF", "#0072B5FF","#BC3C29FF"),#给每条线设定颜色
freq.unit = "wavenumber",#单位
int.unit = "absorbance",
descrip = "",
fileExt = "\\.(csv|CSV)$",
out.file = "mydata",
debug = TRUE,
header = F,
sep = ",",
dec = ".",
quote = "\""
)
运行出现错误
Error message from R: You need to install package R.utils to use this function
There was a problem importing your files!
Are you importing csv or similar files?
If you got a message such as 'undefined columns selected'?
you probably need to specify sep, header and dec values
Please read ?files2SpectraObject for details
For any trouble importing files set debug = TRUE
解决方案:在开头直接下载这个包:
install.packages("R.utils")