Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用RApacheOutputErrors控制输出_R_Rapache - Fatal编程技术网

用RApacheOutputErrors控制输出

用RApacheOutputErrors控制输出,r,rapache,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 'micEco

我已经在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 
\n\n
我正在尝试建立一个Web服务,我希望有错误 直接的。我正试图在r.conf中这样做

RApacheOutputErrors(TRUE,"<p>","</p>")
rapacheoutputers(TRUE,“”,“

”)
但我在重新启动时遇到以下错误:

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

”),可能拼写错误或 由服务器配置中未包含的模块定义”;
如何以及在何处使用此指令

谢谢

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

参考:

你可以坐在这里等杰夫过来,或者,如果你觉得无聊,可以在清单上提问。下面是讨论:你检查了吗?我对此不太了解,但这可能是他们不赞成的原因。正如你看到的,这是一篇2010年的帖子。仅仅删除该功能仍然不能消除最初的问题。仍然需要正确的调试消息。