Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R `自包含:false`导致DT中出现希腊字体问题_R_Windows_Fonts - Fatal编程技术网

R `自包含:false`导致DT中出现希腊字体问题

R `自包含:false`导致DT中出现希腊字体问题,r,windows,fonts,R,Windows,Fonts,当我设置self_contained:false而不是true时,希腊文字符会出现,如图所示。在自给自足的情况下:true一切正常。有什么想法吗 --- title: "self_contained issue in DT" output: html_document: self_contained: false toc: no --- ## Εισαγωγή ```{r, echo=FALSE, warning=FALSE, message=FALSE} librar

当我设置
self_contained:false
而不是
true
时,希腊文字符会出现,如图所示。在
自给自足的情况下:true
一切正常。有什么想法吗

---
title: "self_contained issue in DT"
output:
  html_document:
    self_contained: false
    toc: no
---

## Εισαγωγή

```{r, echo=FALSE, warning=FALSE, message=FALSE}

library(DT)

table.no <- 0


reliability <- structure(list(Ομάδα = structure(c(8L, 5L, 6L, 4L, 2L, 7L, 3L, 
1L), .Label = c("ΕΚΤΑΚΤΗ ΑΝΑΓΚΗ", "ΕΠΑΦΗ ΜΕ ΦΥΣΙΚΟΥΣ / ΧΗΜΙΚΟΥΣ ΠΑΡΑΓΟΝΤΕΣ", 
"ΕΡΓΟΤΑΞΙΑΚΑ ΓΡΑΦΕΙΑ", "ΗΛΕΚΤΡΙΚΟ ΡΕΥΜΑ", "ΚΥΚΛΟΦΟΡΙΑ ΟΧΗΜΑΤΩΝ / ΜΗΧΑΝΗΜΑΤΩΝ / ΤΡΕΝΩΝ", 
"ΟΛΙΣΘΗΣΕΙΣ / ΠΤΩΣΕΙΣ", "ΣΥΝΘΗΚΕΣ ΕΡΓΑΣΙΑΣ", "ΣΥΝΟΛΟ"), class = "factor"), 
    α = c(0.933, 0.809, 0.916, 0.87, 0.88, 0.709, 0.626, 0.905
    ), ρ = c(0.966, 0.899, 0.957, 0.933, 0.938, 0.842, 0.791, 
    0.951)), .Names = c("Ομάδα", "α", "ρ"), row.names = c(NA, 
-8L), class = "data.frame")


datatable(reliability, class = 'cell-border stripe hover', caption = htmltools::tags$caption(
    style = 'caption-side: bottom; text-align: center;',
    paste0('Table ',(table.no <- table.no + 1),': '), htmltools::em('Συντελεστής α του Cronbach και εκτιμώμενος συντελεστής συσχέτισης ρ.')
  ))

```

sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Greek_Greece.1253  LC_CTYPE=Greek_Greece.1253    LC_MONETARY=Greek_Greece.1253 LC_NUMERIC=C                 
[5] LC_TIME=Greek_Greece.1253    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] htmltools_0.2.6 tools_3.2.1     yaml_2.1.13     rmarkdown_0.7   knitr_1.10.5    digest_0.6.8  
---
标题:“DT中的自包含问题”
输出:
html_文件:
自给自足:错误
toc:没有
---
## Εισαγωγή
```{r,echo=FALSE,warning=FALSE,message=FALSE}
图书馆(DT)

表.no
true
false
对我都有效。在Linux上,我的语言环境是
en_GB.UTF-8
。尝试更改区域设置。(我不确定在Windows上是否有效)。尝试了此
Sys.setlocale(“LC_TIME”,“C”)
,但没有任何更改。它可能是特定于Windows的。我也不能在Linux上重现这个问题。我明天会测试Windows。可能是rmarkdown或htmltools的错误。提交给