When I do rtags(ofile="TAGS") at the R prompt, the "TAGS" file is written and there is no output to the terminal (exactly as expected).
When I do R CMD rtags -o TAGS at the shell prompt, the "TAGS" file is written too, but I see several sets of messages on the terminal like this:
etags: no input files specified.
Try `etags --help' for a complete list of options.
I see 6 sets - 12 lines - when I move my libPath out of the current directory and two sets - 4 lines - when I keep it there. I.e., I see more warnings when rtags processes fewer files.
To reproduce, run in an empty directory:
$ 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
What causes these warnings? Is there a way to avoid them?
When I run this from a console session the warnings to the console are not at all like yours, but they are mostly basically meaningless comments about the process of walking through the files in my working directory:
I did have few like this:
The real information about the location of assigned tokens in the code goes into the TAGS file. Since the warnings in my setup are quite different, I still think the answer to your question about the increase in the number of warnings when you change the .Library variable will depend on the specific code that R is parsing during the operation. A guess: removing code from being loaded may be making certain operations not possible that would otherwise have run smoothly. And remember these are only 'warnings'.