[R] .Rdata not loading

Adrian Dușa du@@@@dr|@n @end|ng |rom gm@||@com
Fri Dec 24 16:48:17 CET 2021


On Fri, 24 Dec 2021 at 17:35, Rich Shepard <rshepard using appl-ecosys.com> wrote:

> On Fri, 24 Dec 2021, Rasmus Liland wrote:
>
> > If you want to look at Rdata-files in a quick way in the
> > terminal, use this little gem in your .zshrc.local:
> >
> > readrdata() { Rscript -e "options(width=$COLUMNS); load('$1');
> sapply(ls(), get, simplify=F)" | less }
>
> Rasmus,
>
> I use bash, not zsh. And running the readdata() command in R produces no
> output.
>

Package admisc has a function called obj.rda(), which returns the names of
the objects from an .Rdata file.
Not sure how it handles corrupt .Rdata files, but should generally give an
idea about what's inside.

Hth,
Adrian

	[[alternative HTML version deleted]]



More information about the R-help mailing list