cocalc
cocalc copied to clipboard
special handling for .RData files
If a user clicks to open an RData file, they are repeatedly warned not to proceed or it will be corrupted. However, sometimes they do anyways. Instead, we should:
- Display a message about what an RData file is
- Suggest running R with a link to our docs
- Explain how to load an RData file, e.g., linking to https://bookdown.org/ndphillips/YaRrr/rdata-files.html
In general, if it is an unsupported file type, perhaps the only option can be to display it in some read-only way, so that the actual file on disk is intact?
Yes, but in this case there could be many useful things to say. It might even be possible to run a 1-line R command on the RData file and get a summary of the objects in it.