使用RApacheOutputErrors控制输出

时间:2010-12-10 08:31:58

标签: r rapache

我在r.conf中激活了ROutputErrors,它可以正常工作 做。

当我出错时,我得到了这个:

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 个答案:

答案 0 :(得分:1)

RApacheOutputErrors() 此函数已被弃用,将从下一个rApache版本中删除。如果被调用它会调用警告。

REF:  http://rapache.net/manual.html#rapache_Functions

相关问题