RStudio 1.3.1093 - suddenly unable to import any data

I can't import any data into RStudio.
My 'read.csv' command no longer works - the programme can't find the file.
For 'environment', when I try to open a csv file, I get the response:

Error: bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘Survival.csv’ has magic number 'De'
Use of save versions prior to 2 is deprecated

And also in environment, when I use the 'Import Dataset' command and select 'From Excel', I receive a dialog box asking me to 'Install Required Packages', which requires me to update the readxl package. However, every time I run the update, the update fails - meaning I can't access any data.

I'm at wit's end. I've scrapped and re-downloaded RStudio about five or six times now, and the problem is never resolved.

Grateful for any help you can provide.

Try this.

Export the target file as csv to your working directory.

From the console use dir() to confirm it’s there.

Consider installing readr and using read_csv, rather than read.csv

If an error, open csv in a text editor and make sure that the last line is empty

This is hardly related to the IDE but to specific packages, can you choose one an provide more detailed information about your issue (the actual error message)?

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.