? Wed, 10 Sep 2025 16:13:25 -0700
helgasoft <helgasoft at gmail.com> ?????:
> Command?compiler::cmpfile(infile) outputs a binary (.Rc) file.
> The infile source code is contained in this output file.
> Is the source code required, and if not, is it possible to make it 
> optional ?
The source references are optional. Since cmpfile() calls parse(),
setting options(keep.source=FALSE) should prevent it from adding source
references.
On the other hand, by calling compiler::disassemble() on the bytecode
values, you will still be able to see the language objects from the
file, so a somewhat lossy representation of the source code is still
present. These language objects are used at least for error handling
and sometimes for internal consistency checks [*].
What's your use case?
-- 
Best regards,
Ivan
[*]
https://coolbutuseless.github.io/book/rbytecodebook/15-stored-expressions.html