tests/testthat.R

Sys.setenv("R_TESTS" = "")
# Sys.setenv(LC_COLLATE = "C", LC_TIME = "C", LANGUAGE = "en")
Sys.setenv(LC_COLLATE = "C")

print(Sys.getlocale(category = "LC_ALL"))
Sys.setlocale("LC_COLLATE", "C") # R CMD check uses this default
# Sys.setlocale("LC_COLLATE", "en_US.UTF-8")
# Sys.setlocale("LC_COLLATE", "English_United States.1252")
print(Sys.getlocale(category = "LC_ALL"))

library(testthat)
library(frequency)
test_check("frequency")
wilcoxa/frequencies documentation built on Jan. 22, 2021, 6:40 p.m.