Rprudon
September 22, 2023, 8:35am
1
Hey everyone,
I have been working on an R file in RStudio for months. I saved the file last friday, and when opening it again on monday, the file was completely empty (size 0kb). All previous versions of the file were empty as well. I think the problem is similar to that discussed here: R code file 0 kb after saving with previous version of R
I make daily backups, but somehow the file in the backup is empty aswell for the last 2 months. The most recent backup in which the file still has coding it in, is from july 1st.
Does anyone know how i could retrieve the coding?
Thanks!
Sadly, I would wager theres no recovering the specific files mentioned
opened 05:23PM - 13 May 22 UTC
closed 01:56PM - 24 May 22 UTC
bug
windows
encoding
### System details
RStudio Edition : Desktop
RStudio Version : 2022.… 02.2+485
OS Version : Windows 11 64-bit
R Version : 4.2.0
### Steps to reproduce the problem
Create a text document with the contents:
```
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
abcdefghijklmnopqsrtuvwxyz
```
Save it, then try File -> Reopen with Encoding -> ISO-8859-1.
### Describe the problem in detail
The file is opened as a blank file.
### Describe the behavior you expected
The file should be opened without issue.
- [x] I have read the guide for [submitting good bug reports](https://github.com/rstudio/rstudio/wiki/Writing-Good-Bug-Reports).
- [x] I have installed the latest version of RStudio, and confirmed that the issue still persists.
- [x] If I am reporting an RStudio crash, I have included a [diagnostics report](https://support.rstudio.com/hc/en-us/articles/200321257-Running-a-Diagnostics-Report).
- [x] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
I would recommend though, taking further steps to derisk the loss of precious code;
write R code using Rstudios project features
in particular make use of version control via git
get greater benefits to using git, by using the github integrations (which will provide a 3rd party host for maintaining your code history).
system
Closed
October 13, 2023, 9:40am
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.