반응형
0이 아닌 상태 코드로 R 종료
linux / POSIX exit (n)에 해당하는 R을 찾고 있는데, 종료 코드 n으로 프로세스를 중지하고 오류가 발생했음을 부모 프로세스에 알립니다. R에 그런 시설이 있습니까?
에 대한 논쟁 quit()
입니다. 을 참조하십시오 ?quit
.
인수 :
status: the (numerical) error status to be returned to the operating
system, where relevant. Conventionally ‘0’ indicates
successful completion.
세부 사항 :
Some error statuses are used by R itself. The default error
handler for non-interactive use effectively calls ‘q("no", 1,
FALSE)’ and returns error code 1. Error status 2 is used for R
‘suicide’, that is a catastrophic failure, and other small numbers
are used by specific ports for initialization failures. It is
recommended that users choose statuses of 10 or more.
quit(status=1)
1
필요한 종료 코드로 교체하십시오 .
참조 URL : https://stackoverflow.com/questions/7681199/make-r-exit-with-non-zero-status-code
반응형
'UFO ET IT' 카테고리의 다른 글
Windows 마지막 재부팅 이유를 어떻게 알 수 있습니까? (0) | 2020.12.31 |
---|---|
GIT 경고 : 부정확 한 이름 변경 감지를 건너 뛰는 파일이 너무 많습니다. (0) | 2020.12.31 |
Visual Studio 2008에서 디버깅 할 때 "64 비트 응용 프로그램에 대한 변경이 허용되지 않음" (0) | 2020.12.31 |
Eclipse : 기존 소스 폴더를 추가하는 방법은 무엇입니까? (0) | 2020.12.31 |
PHP 번호 : 필요한 경우에만 소수점 표시 (0) | 2020.12.31 |