我已经在 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";
我如何以及在哪里可以使用这个指令?
谢谢