Page 1 of 1

How is RData saved

Posted: Wed May 18, 2022 1:49 pm
by startz
Sometime (in the last year I think), there has been a change in how .RData is saved. Series used to be saved as time series. Now they are saved as numbers with the dates put in as row names. While I think this was a good change, it would be nice to have the option of saving in the older format as well.

Re: How is RData saved

Posted: Tue May 31, 2022 7:27 am
by EViews Steve
If your frequency is supported by R time series (annual, monthly, quarterly, daily, & undated), you can ask EViews to default all of your series objects to use that instead (during a save). My guess is that this option was changed to data.frame recently on your machine?

save_series_as.png
save_series_as.png (17.41 KiB) Viewed 5054 times

If your workfile is not a supported R time series frequency, EViews will default back to data.frame.

Re: How is RData saved

Posted: Tue May 31, 2022 7:58 am
by startz
Makes sense, but it would be nice to also have the option on the Save dialog.

Re: How is RData saved

Posted: Tue May 31, 2022 9:39 am
by EViews Steve
I disagree.

Allowing you to save a workfile to RData workspace format is basically short-hand for calling XOPEN, XPUT, XRUN, & XCLOSE yourself. I would imagine most R users would be using just a single type (either data.frame or ts) and wouldn't switch between those two often. If they did, they can call XOPEN, XPUT, XRUN, & XCLOSE themselves and use the rtype option in XPUT.

Also, our Save dialog is the generic Windows Save dialog that we've slightly modified in order to support cloud drives and updating the default directory. These modifications are extremely restricted by the dialog and really wouldn't allow us to dynamically hide/show new controls based on selected save as type. Adding the R type option here would most likely require a entirely new custom Save dialog that inevitably would exhibit different behaviors (such as keyboard behavior & left tree view) as the generic Windows one - which is undesirable.

Re: How is RData saved

Posted: Tue May 31, 2022 10:23 am
by startz
I believe that 100% of EViews/R users who have posted here on the topic occasionally need to save in both ways. :)

With other formats with multiple options (e.g. Excel) you have more than one choice in the drop-down. Wouldn't be hard to have two RData choices there.