[R] R code in RData

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Wed Oct 27 19:47:14 CEST 2021

See ?load, but you may be confused. Strictly speaking, there is no code in
an .Rdata file, only a (typically binary, but possibly ascii)
representation of objects, usually as produced by ?save. Of course,
functions are also objects, so that if you load a file with functions, the
function code is available.

You can save and load command histories via ?savehistory, which, like ?save
and ?load can usually be accessed through any GUI interface that you are

Warning: I believe the above is correct, but I may be wrong in at least
some details, so give others a chance to reply and possibly correct.


Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Oct 27, 2021 at 10:18 AM Bogdan Tanasa <tanasa using gmail.com> wrote:

> Dear all, would you please advice :
> I have an Rdata file, what is the way to print the R code that has been
> used inside the Rdata file ?
> thank you,
> Bogdan
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list