R/read_file.R

Defines functions read_file

# Read a TopoJSON or GeoJSON file as a string
read_file <- function(fn) {
  readChar(fn, nchars = file.info(fn)$size)
}
ropensci/cartographer documentation built on May 18, 2022, 9:49 a.m.