You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RData files cannot be read in as an object, but instead are simply released on to the user environment. I think we should all be switching to Rds (see IQSS/dataverse#7249) but nonetheless, some files on Dataverse are uploaded as .RData.
It turns out there are two ways to load this. One is the old way to write the binary file and re-read it with a different function. Another is to create a mini environment within a function, as I found on Stack Overflow. See both in the reprex below. I get identical objects.
RData files cannot be read in as an object, but instead are simply released on to the user environment. I think we should all be switching to Rds (see IQSS/dataverse#7249) but nonetheless, some files on Dataverse are uploaded as .RData.
It turns out there are two ways to load this. One is the old way to write the binary file and re-read it with a different function. Another is to create a mini environment within a function, as I found on Stack Overflow. See both in the reprex below. I get identical objects.
We should update the doc with an example.
h/t @jonrobinson2
Created on 2021-09-16 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: