programing

RApacheOutputErrors로 출력 제어

kingscode 2021. 1. 16. 10:01
반응형

RApacheOutputErrors로 출력 제어


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 

웹 서비스를 구축하려고하는데 오류가 직접 발생하고 싶습니다. 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"; 

이 지시문을 어디서 어떻게 사용할 수 있습니까?

감사


RApacheOutputErrors ()이 함수는 더 이상 사용되지 않으며 다음 rApache 릴리스에서 제거됩니다. 호출되면 경고를 호출합니다.

참조 : http://rapache.net/manual.html#rapache_Functions

참조 URL : https://stackoverflow.com/questions/4406964/controlling-the-output-with-rapacheoutputerrors

반응형