2010-12-10 27 views
54

我在r.conf中激活了ROutputErrors,它的工作原理與 一樣。用RApacheOutputErrors控制輸出

當我有一個錯誤,我得到這樣的:

Oops!!! rApache has something to tell you. View source and read the 
HTML comments at the end. 

和源代碼中,我得到的錯誤。

\n<!--\nError in library(micEconAids) : there is no package called 
'micEconAids'\nTraceback:\n5: stop(txt, domain = NA)\n4: 
library(micEconAids)\n3: eval(expr, envir, enclos)\n2: eval(i, envir) 
\n1: sys.source(file = \"\/var\/www\/r\/test\/25.R\", envir = .rAenv) 
\n-->\n 

我想建立一個web服務,我想 直接有錯誤。我試圖做到這一點在r.conf

RApacheOutputErrors(TRUE,"<p>","</p>") 

但我得到重啓此錯誤:

"Invalid command 
'RApacheOutputErrors(TRUE,"<p>","</p>")', perhaps misspelled or 
defined by a module not included in the server configuration"; 

如何以及在哪裏可以使用這個指令?

感謝

+1

您可以坐在這裏等待,直到傑夫通過擺動,或者,如果你覺得無聊,你可以問的[谷歌論壇](http://groups.google.com/group/rapache?pli = 1)列表。 – 2010-12-10 15:15:28

+1

我已經做了。謝謝。 – 2010-12-10 15:42:14

回答