Bu sorunun this one ile benzer olduğunu biliyorum. Ama orada bir çözüm bulamadım, bu yüzden buraya tekrar gönderme.Örme HTML'yi komut satırında nasıl çoğaltılır?
"HTML'yi Biçimlendir" seçeneğini tıklatarak, ancak bir komut ile tam olarak aynı çıktıyı elde etmek istiyorum. , Kable vb çalışmıyor ben knit2html kullanarak tryied ancak biçimlendirme kurcalamayacağından ve başlığı içermez
Örnek: Bu benim test.Rmd dosyası,
---
title: "test"
output: html_document
---
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r}
library(knitr,quietly=T)
kable(summary(cars))
```
You can also embed plots, for example:
```{r, echo=FALSE}
plot(cars)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Çıktı
geçerli:
Örme HTML
knit2html
FWIW komut satırı çıktısını tercih ederim. –
@KonradRudolph: Benim için çalışmayacak. Bu sadece koyduğum örnek bir kod. Gerçek kullanım durumumda 8 sütun ve 10 satırlık büyük bir tablo var. Komut çıkışı çirkin görünecek. – Avinash
Bunun nedeni, her iki seçeneğin de (!) Tabloları varsayılan olarak kötü şekilde biçimlendirmesidir. Geliştirilmiş bir seçenek için cevabımı görün. –