I want to learn content-type of a file. what should I do?

In my code I want to do:

I give an url to download.
the function learns the content-type and
if it is a text file downloads it.
else will raise an error.

        [[alternative HTML version deleted]]

______________________________________________
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