Error in gzfile(path.expand(tarfile), "rb") : cannot open the connection In addition: Warning message: In gzfile(path.expand(tarfile), "rb") : cannot open compressed file 'NA', probable reason 'Permission denied'

Hi chinthra, sorry about your recent troubles. Usually folks like to see as close to a reproducible example (reprex) as possible. In this case you might not be able to give us the file, but could you show the code snippet error as it appears in your console?

That being said,

  • the error message says "cannot open compressed file 'NA', probable reason 'Permission denied'", suggests your code is providing NA as a filepath. Does that ring true?
  • And the 'Permission denied' often appears when you don't have read permissions on that file.