app.R

# Launch the ShinyApp (Do not remove this comment)

# Sys.setenv("LANG" = "ja_JP.UTF-8")

## Copy font files manually and call `fc-cache`.
if (!dir.exists("~/.fonts")) { dir.create("~/.fonts") }
file.copy("./inst/fonts/setofont-sp-merged.ttf", "~/.fonts", overwrite = TRUE)
system("fc-cache -vf ~/.fonts")

# print(head(sysfonts::font_files())$family)

## Load app
# golem::detach_all_attached() # Detach all loaded packages and clean your environment
pkgload::load_all(export_all = FALSE, helpers = FALSE, attach_testthat = FALSE)
options(
  "golem.app.prod" = TRUE
)
shaketoba::run_app() # add parameters here (if any)
paithiov909/shaketoba documentation built on Dec. 22, 2021, 5:25 a.m.