R stores compiled functions in a format that includes the bytecode instructions. To "decompile" this, you generally need to use the compiler package functions, though fully decompiling bytecode back to original source code is not always possible. You can, however, inspect the disassembly .

file yourfile.r

from a saved R workspace binary ( .RData or .rda ).

If you are trying to , you are likely trying to inspect the binary data stored in a checkpoint file to see how far a process went or to extract data from a stopped job.

provide or support any official tool for reverse engineering r-code Progress Documentation Key Realities of Decompiling .r Files

(if it contains a function)

The easiest way to "decompile" an R data file is to use R itself. This is the standard method for .rds and .RData files.

To "decompile" is effectively to or load this data back into a human-readable format. You might need to do this for several reasons:

print(my_func)

For a whole directory:

using a progress bar inside an R script. Tracking Progress in R Scripts

Use lazyLoad("path_to_database_prefix") within an active R console.