[R] R and .asc file extension

Ivan Krylov
Fri, 20 May 2022 14:16:55 -0000

? Fri, 20 May 2022 13:27:20 +0000 (UTC)
Thomas Subia via R-help <r-help at r-project.org> ?????:

> I have data which has a .asc file extension.
>
> Can R read that file extension?

It very much depends on the content. ".asc" could mean ASCII text (in
which case read.table() or at least readLines() is your friend), or
something completely different. For example, RFC 4880 "ASCII armoured"
files typically have .asc extension, but you're much better off reading
those using an OpenPGP implementation, not R.

--
Best regards,
Ivan