我们正在尝试将一些表数据写入文件但没有成功。
使用write.csv
.
这是我们尝试的一些示例代码:
> <%
>
> X<-c(1:666)
>
> print(X)
>
> write.csv(X,"hh")
>
> %>
以下是我们无法计算的 rapache 错误:
RApache Warning/Error!!!
Error in file(file, ifelse(append, "a", "w")) : cannot open the connection
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/step1_5.php'
RApache Warning/Error!!!
2: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/step1_5.php'
RApache Warning/Error!!!
3: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/step1_5.php'
RApache Warning/Error!!!
4: In readLines(icon, 1) : incomplete final line found on '/var/www/brew/sampleplan/writefile.php'
RApache Warning/Error!!!
5: In file(file, ifelse(append, "a", "w")) : cannot open file 'hh': Permission denied
RApache Warning/Error!!!
函数 brew 返回一个'try-error'
. 返回 HTTP 响应代码 500。
如果有人可以给我们写一个简单的例子或者更正我们的代码,那就太棒了。
谢谢,
Yoni & Tsvi。