Problem with save

I'm beginner in R. Anyone can help me how I can fix error with save.
Here is the code:

dane <- read_xlsx(path = "wybory2020.xlsx")


mean(dane$'% głosów nieważnych')

dane_czyste <- janitor::clean_names(dane)


mean(dane_czyste$percent_glosow_niewaznych,na.rm = TRUE )

save(dane_czyste, file = "data/wybory.rda") - and in this point I have this error:

"Error in file(file, "wb") : cannot open the connection
In addition: Warning message:
In file(file, "wb") :
cannot open file 'data/wybory.rda': No such file or directory"

I'll be grateful when someone help me :slight_smile:

Do you have a folder called data in your project?

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.

Oh, man :sweat_smile:
Yes, I actually didn't have this folder. Now everything works.
Many thanks :grin:

1 Like