【发布时间】:2011-08-06 05:20:45
【问题描述】:
我正在尝试使用 MASS 包中的 boxcox 函数创建绘图。
但它正在创建一个 rapache 错误。
r代码:
<%
csvDF<- read.csv(GET$name1, header=TRUE)
a<-lm(csvDF[,GET$col_variable]~1)
require(MASS)
filename1 <- paste(tempfile(tmpdir='/var/www/images'), '.png', sep='')
png(filename1)
bx<-boxcox(a)
dev.off()
%>
**GET$name1 是 csv 数据文件地址。 **GET$col_variable 是变量列。
当我丢失“bx
这里是 rapache 错误:
RApache Warning/Error!!!
Error in eval(expr, envir, enclos) : object 'csvDF' not found
RApache Warning/Error!!!
In addition:
RApache Warning/Error!!!
Warning messages:
RApache Warning/Error!!!
1: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/step5_box_cox.php'
RApache Warning/Error!!!
2: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/step5_box_cox.php'
RApache Warning/Error!!!
3: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/step5_box_cox.php'
RApache Warning/Error!!!
4: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/step5_box_cox.php'
RApache Warning/Error!!!
5: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/step5_box_cox.php'
RApache Warning/Error!!!
Function brew returned an object of 'try-error'. Returning HTTP response code 500.
如有任何建议,我将不胜感激。
【问题讨论】: