How to get a list of elements in *.rar file in R on Linux?

I trying to use untar() in linux (20.04) to get a list of elements inside a *.rar file. But it wont works.

I use the following command: untar(tarfile = "a.rar", list = TRUE)

I get the following output:

/bin/tar: Este não parece ser um arquivo-tar
/bin/tar: Pulando para o próximo cabeçalho
/bin/tar: Saindo com status de falha em razão de erros anteriores
character(0)
attr(,"status")
[1] 2
attr(,"errmsg")
[1] "Arquivo ou diretório inexistente"
Warning message:
In system(cmd, intern = TRUE) :
  execução do comando '/bin/tar -tf 'a.rar'' teve status 2

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.