tidyverse / readr

Read flat files (csv, tsv, fwf) into R
https://readr.tidyverse.org
Other
1.01k stars 286 forks source link

Reinstate Māori example #247

Closed hadley closed 8 years ago

hadley commented 9 years ago
#'
#' # Or create a locale by hand. Here's one for Maori:
#' locale(date_names(
#'   day = c("Rātapu", "Rāhina", "Rātū", "Rāapa", "Rāpare", "Rāmere", "Rāhoroi"),
#'   mon = c("Kohi-tātea", "Hui-tanguru", "Poutū-te-rangi", "Paenga-whāwhā",
#'     "Haratua", "Pipiri", "Hōngongoi", "Here-turi-kōkā", "Mahuru",
#'     "Whiringa-ā-nuku", "Whiringa-ā-rangi", "Hakihea")
#'   ),
#'   tz = "Pacific/Auckland"
#' )

Once I figure out how to make it good with R

hadley commented 9 years ago

Maybe include literal latex along the lines of https://en.m.wikibooks.org/wiki/LaTeX/Special_Characters

hadley commented 9 years ago
#' \if{latex}{\out{
#'   \DeclareUnicodeCharacter{0100}{\=A}
#'   \DeclareUnicodeCharacter{0101}{\=a}
#'   \DeclareUnicodeCharacter{0112}{\=E}
#'   \DeclareUnicodeCharacter{0113}{\=e}
#'   \DeclareUnicodeCharacter{012A}{\=I}
#'   \DeclareUnicodeCharacter{012B}{\=\i}
#'   \DeclareUnicodeCharacter{014C}{\=O}
#'   \DeclareUnicodeCharacter{014D}{\=o}
#'   \DeclareUnicodeCharacter{016A}{\=U}
#'   \DeclareUnicodeCharacter{016B}{\=u}
#' }}

But doesn't get it into the preamble where it needs to go

hadley commented 8 years ago

Moved into vignette