Error R : Permission denied

Hello !

I have an issue, i'm trying to export a dataframe from R into a excel format by using the function :
write_xlsx () but R is printing that problem :

System error = Permission denied
Error: Error in libxlsxwriter: 'Error creating output xlsx file. Usually a permissions error.'

I suppose that i have to allow R some permission but i don't know how to do that

Thank you

I get the same error if I try to write to a xlsx-document that is already opened in Excel. Have you checked that the document isn't opened in Excel?

Best regards

File permissions are handled by your operating system, you haven't told us what operating system you are using and this is actually not R or RStudio related.