controlling the output with RApacheOutputErrors

RRapache

R Problem Overview


I have activated ROutputErrors in r.conf and it works as is suppose to do.

When I have an error I get this:

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

And in the source code I get the error.

\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 

I am trying to build a webservice and I would like to have the errors directly. I am trying to do this in r.conf

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

But I get this error on restart:

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

How and where can I use this directive?

Thanks

R Solutions


Solution 1 - R

RApacheOutputErrors() This function has been deprecated and will be removed from the next rApache release. It invokes a warning if it is called.

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionElzo ValugiView Question on Stackoverflow
Solution 1 - Rdilip kumbhamView Answer on Stackoverflow