Skip to content

Instantly share code, notes, and snippets.

@pormr
Created February 18, 2025 05:32
Show Gist options
  • Select an option

  • Save pormr/b2074a31faf75ba7ecf15a861d239cf9 to your computer and use it in GitHub Desktop.

Select an option

Save pormr/b2074a31faf75ba7ecf15a861d239cf9 to your computer and use it in GitHub Desktop.
Get the version of R from .rds/.rda files in which it was saved
## Get the R version from .Rdata/.rda files in which it was saved
.Internal(loadInfoFromConn2(file("path/to/your/file.rdata")))$writer_version
## Get the R version from .RDS files in which it was saved
.Internal(serializeInfoFromConn(file("path/to/your/file.RDS")))$writer_version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment