2013-07-02 3 views
1

R 프롬프트에서 rtags(ofile="TAGS")을 입력하면 "TAGS" 파일이 기록되고 터미널에 출력되지 않습니다 (정확히 예상대로). 내가 쉘 프롬프트에서 R CMD rtags -o TAGS을 수행 할 때rtags : "etags : 입력 파일을 지정하지 않았습니다."

"TAGS" 파일이 너무 작성된 것입니다,하지만 난이 같은 터미널에서 메시지의 여러 세트를 참조하십시오

etags: no input files specified. 
    Try `etags --help' for a complete list of options. 

내가 6 개 세트 참조 - 12 개 라인 - 때 현재 디렉토리에서 내 libPath을 이동하고 거기에 보관하면 두 세트 (4 줄)를 이동하십시오. 즉, 내가 더 때 경고를 참조하십시오 파일을 처리합니다.

재생하려면, 디렉토리에 실행

$ mkdir z 
$ cd z 
$ R --vanilla CMD rtags 

Tagging R/C/Rd files under /home/sds/z; writing to TAGS (overwriting)... 

etags: no input files specified. 
    Try `etags --help' for a complete list of options. 
etags: no input files specified. 
    Try `etags --help' for a complete list of options. 
etags: no input files specified. 
    Try `etags --help' for a complete list of options. 
etags: no input files specified. 
    Try `etags --help' for a complete list of options. 
etags: no input files specified. 
    Try `etags --help' for a complete list of options. 
etags: no input files specified. 
    Try `etags --help' for a complete list of options. 
Done 

은 무엇 이러한 경고의 원인은? 그들을 피할 방법이 있습니까?

+0

"출력이 없습니다". 그게 무슨 뜻 이죠? 어디서 봤어? –

+0

@DWin : clarified – sds

+0

대답은'* .R' 파일의 내용에 달려 있지 않습니다 (우리는 볼 방법이 없습니다)? 그리고 우리의 요구 된 추측은 특별한 경고를 포함함으로써 도움을받지 않을 것입니까? –

답변

0

나는 콘솔에 경고이며 전혀 당신 같은 콘솔 세션에서이 작업을 실행하지만, 대부분 내 작업 디렉토리에있는 파일을 걷는 과정에 대한 기본적 의미 의견 경우 :

1: In file.remove(ofile) : 
cannot remove file 'TAGS', reason 'No such file or directory' 
..... 
: In readLines(file) :, incomplete final line found on './Untitled.R' 
내가 한

은 다음과 같이 몇 가지가 있습니다

6: In grepl("\n", lines, fixed = TRUE) : input string 5 is invalid in this locale 

코드에 할당 된 토큰의 위치에 대한 실제 정보는 태그 파일로 이동합니다. 설치 프로그램의 경고가 상당히 다르므로 여전히 .Library 변수를 변경할 때 경고 수가 증가하는 것에 대한 질문에 대한 대답은 작업 중에 R이 구문 분석하는 특정 코드에 따라 달라질 것이라고 생각합니다. 추측 : 코드가로드되지 않으면 특정 작업을 수행하지 못할 수 있습니다. 그렇지 않으면 원활하게 실행되지 않습니다. 그리고 이것들은 단지 '경고'일 뿐이라는 것을 기억하십시오.

+0

고마워,하지만이게'empty '디렉토리에서'R CMD rtags'를 실행하는 것과 어떻게 관련이 있니? – sds

+0

문제를 해결 했습니까? 동일한 오류가 발생하고 이에 대한 정보가 없습니다. –

관련 문제