Is there a way in R (in Linux) to detect the type of a file without invoking
a shell? E.g to do this:

> system("file density.plot")
density.plot: PDF document, version 1.4

but without using system()? I tried file() and file.info(), but both do
display the information I am looking for.



--
View this message in context: 
http://r.789695.n4.nabble.com/detect-filetype-as-in-unix-file-tp3424562p3424562.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to