Re: [R] R code in RData

2021-10-28 Thread Martin Maechler
> Bert Gunter > on Wed, 27 Oct 2021 10:47:14 -0700 writes: > 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,

Re: [R] R code in RData

2021-10-28 Thread Martin Maechler
> Jeff Newmiller > on Wed, 27 Oct 2021 11:43:08 -0700 writes: > Sounds right, though the OP appears to be assuming that the code used to generate the data objects in the file will also be there, and we need to be more definitive about that: it is not. Depending how the code was

Re: [R] R code in RData

2021-10-27 Thread Jeff Newmiller
Sounds right, though the OP appears to be assuming that the code used to generate the data objects in the file will also be there, and we need to be more definitive about that: it is not. Depending how the code was constructed, there may be useful information in the functions that were stored

Re: [R] R code in RData

2021-10-27 Thread Bert Gunter
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

[R] R code in RData

2021-10-27 Thread Bogdan Tanasa
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@r-project.org mailing list -- To