我在r.conf中激活了ROutputErrors,它可以正常工作.
当我有错误时,我得到了这个:
Oops!!! rApache has something to tell you. View source and read the
HTML comments at the end.
Run Code Online (Sandbox Code Playgroud)
在源代码中我得到了错误.
\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
Run Code Online (Sandbox Code Playgroud)
我正在尝试构建一个Web服务,我想直接得到错误.我想在r.conf中这样做
RApacheOutputErrors(TRUE,"<p>","</p>")
Run Code Online (Sandbox Code Playgroud)
但我在重启时遇到此错误:
"Invalid command
'RApacheOutputErrors(TRUE,"<p>","</p>")', perhaps misspelled or
defined by a module not included in the server configuration";
Run Code Online (Sandbox Code Playgroud)
我如何以及在何处使用此指令?
谢谢
小智 1
RApacheOutputErrors() 该函数已被弃用,并将从下一个 rApache 版本中删除。如果被调用,它会发出警告。
参考: http: //rapache.net/manual.html#rapache_Functions