0
我們正在嘗試將一些表格數據轉換爲文件,但沒有成功。使用write.csv
。如何使用rapache寫入文件?
下面是我們嘗試一些示例代碼:
> <%
>
> 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!!!
功能釀造返回的'try-error'
的對象。返回HTTP響應代碼500.
如果有人能給我們寫一個簡單的例子或更正我們的代碼,它將會很棒。
感謝的,
號Yoni & Tsvi。
R無法寫入R正在運行的當前工作目錄。整理您的權限並重試。 – 2011-04-15 15:47:07
請不要交叉郵件!你已經在RApache郵件列表上提出了同樣的問題! – aL3xa 2011-04-15 16:07:27