I was running the check for my package that I have created when I got this error due to some example file that has been created outside my package directory which has been created due to the vignette I have created because while checking when R was reading the vignette, it got this error and I tried to delete the folder that has been created outside my package directory but I am not able to. Here is the error that is shown while checking the package:
E checking examples ... Running examples in 'ikpack-Ex.R' failed Warning in file(con, "r") : cannot open file 'ikpack-Ex.Rout': Permission denied Error in file(con, "r") : cannot open the connection Execution halted
Any kind of help related to this is appreciated.