cocalc icon indicating copy to clipboard operation
cocalc copied to clipboard

special handling for .RData files

Open williamstein opened this issue 11 months ago • 2 comments

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:

  1. Display a message about what an RData file is
  2. Suggest running R with a link to our docs
  3. Explain how to load an RData file, e.g., linking to https://bookdown.org/ndphillips/YaRrr/rdata-files.html

williamstein avatar Mar 28 '24 16:03 williamstein

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?

novoselt avatar Mar 28 '24 17:03 novoselt

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.

williamstein avatar Mar 28 '24 17:03 williamstein