It depends on the scope of "this." From the
read_csv() docs; the
Either a path to a file, a connection, or literal data (either a single string or a raw vector).
Files ending in
.zip will be automatically uncompressed. Files starting with
ftps:// will be automatically downloaded.
However, if there are other files in the zip folder, readr won't know what to do with them (the example, again, in the same docs, shows
To read in and join multiple csv files, you'll have to tell readr where those files are. The answer on SO, below, is one approach, though it doesn't use readr (which is fine — you could also probably adapt it to use readr, if you wanted to):
This thread on GitHub also has several good approaches using readr and purrr:
The above pre-dated the fs (short for file system) package, which can also be of great help.
Have you looked at the tidycensus package? Having worked with a lot of Census and American Community Survey (acs) data before tidycensus existed, I definitely wish that I'd been able to use it directly.