使用带有法语口音的DT(é,è,â...)时遇到问题:
代码:
library(DT)
library(shiny)
# Viewer
dataf <- data.frame(Label = "Activité", Value = 15, stringsAsFactors = F)
datatable(dataf)
# Shiny
server <- function(input, output) {
output$dtf <- renderDataTable({
data.frame(Label = "Activité", Value = 15, stringsAsFactors = F)
})
}
ui <- fluidPage(
dataTableOutput('dtf')
)
shinyApp(ui = ui, server = server)
我试过了:
但没有解决问题
我的sessionInfo(我使用RStudio 0.99.484):
R version 3.2.1 (2015-06-18)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shiny_0.12.2 DT_0.1
loaded via a namespace (and not attached):
[1] htmlwidgets_0.5 R6_2.1.1 magrittr_1.5 htmltools_0.2.6 tools_3.2.1
[6] rstudioapi_0.3.1 yaml_2.1.13 Rcpp_0.12.1 jsonlite_0.9.17 digest_0.6.8
[11] xtable_1.7-4 httpuv_1.3.3 mime_0.4
欢迎任何帮助, 感谢,
的Jérémy