R Studio Python: Error Writing CSV to Open File

I am getting an error when trying to write a csv file using Python in R Studio.

Error message: "File in Use. The action can't be completed because the file is open in RStudio R Session".

I tried restarting the R Session and confirmed that the file is not open in another application. Why is RStudio holding onto this file as open even though that does not appear to be the case?

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.