ื”ืคืขืœื” ืฉืœ ืืคืœื™ืงืฆื™ื™ืช Shiny ื‘ืœื—ื™ืฆืช ื›ืคืชื•ืจ.

22 views
Skip to first unread message

ืื‘ืจื”ื ืคื™ื™ื ืกื™ืœื‘ืจโ€Ž

unread,
Oct 4, 2018, 5:23:44โ€ฏAM10/4/18
to Israel R User Group
ืฉืœื•ื,

ื‘ื ื™ืกื™ื•ืŸ ืœื”ื ื’ื™ืฉ ืืคืœื™ืงืฆื™ื™ืช Shiny ืฉื‘ื ื™ืชื™ ืœื˜ื•ื‘ืช ืขื•ื‘ื“ื™ื ืฉืœื ืžื›ื™ืจื™ื ืืช R, ื”ื™ื™ืชื™ ืฉืžื— ืœืืคืฉืจ ืœื”ื ืœื”ืคืขื™ืœ ืืคืœื™ืงืฆื™ื” ืขืœ ื™ื“ื™ ืœื—ื™ืฆื” ืขืœ Icon ืฉื™ืจื™ืฅ ืืช ื”ืืคืœื™ืงืฆื™ื”.
ื”ืืคืœื™ืงืฆื™ื” ืžื•ืจื›ื‘ืช ืœืžื“ื™ ื•ื›ื•ืœืœืช ื‘ืชื•ื›ื” ืงื•ื‘ืฅ markdown, ืฉืžืกื™ื‘ื” ืœื ืžื•ื‘ื ืช ืœื™ ืœื ืขื•ื‘ื“.
ืฉืืœืชื™ ืืช ื”ืฉืืœื” ื”ื–ื• ื’ื ื‘stackoverflow ื•ืขืงื‘ืชื™ ื›ืžื™ื˜ื‘ ื™ื›ื•ืœืชื™ ืขืœ ื”ื”ื•ืจืื•ืช ืœืคืจืกื•ื ืฉืืœื•ืช (ื’ื ื‘Stack ื•ื’ื ืคื”) ื•ืชื”ื™ืชื™ ื”ืื ื™ืฉ ืœื›ื ืขืฆื” ื˜ื•ื‘ื” ืœืฉื™ืคื•ืจ ื”ืฉืืœื” ืฉืœื™.
ืื ื™ ืžืขืชื™ืง ื•ืžืชืื™ื ืืช ื”ืฉืืœื” ืฉืœื™ ืžstackoverflow... ื‘ื‘ืงืฉื” ืชื’ื™ื“ื• ืœื™ ืื ืžืฉื”ื• ืœื ื‘ืจื•ืจ ืื• ืฉื™ืฉ ื ืงื•ื“ื” ืฉืื ื™ ืฆืจื™ืš ืœื—ื“ื“:

ืื– ืžืขื˜ ืจืงืข ื™ืฉ ืœื™ ืืคืœื™ืงืฆื™ื™ Shiny ืฉื›ืชื‘ืชื™ ืขืœ ืžื ืช ืœื”ืงืœ ืขืœ ืขื•ื‘ื“ื™ื ืฉืžืคื—ื“ื™ื ืžืชื›ื ื•ืช. ื‘ืžื”ืœืš ื”ื‘ื ื™ื” ืฉืœ ื”ืืคืœื™ืงืฆื™ื™ื” ื”ื—ืœื˜ืชื™ ืœื”ื˜ืžื™ืข ืงื•ื‘ืฅ rmarkdown ื•ื‘ื• ื”ื•ืจืื•ืช ื”ืคืขืœื” ืœืืคืœื™ืงืฆื™ื” ื•ื›ื“ื•'.ย 
ืขื“ ื›ืืŸ ื”ื›ื•ืœ ื ื”ื“ืจ ื”ืืคืœื™ืงืฆื™ื” ืขื•ื‘ื“ืช, ื•ืืžื ื ืœืงื— ื–ืžืŸ ืœื›ืชื•ื‘ ื•ืœืฉืคืจ ืื‘ืœ ื”ื™ื ืขื•ื‘ื“ืช ื ื”ื“ืจ.
ืขื›ืฉื™ื• ื”ื’ื™ืข ื”ื—ืœืง ืฉื‘ื• ื”ื—ืœื˜ืชื™ ืฉืื ืฉื™ื ื™ื›ื•ืœื™ื ืœื”ืคืขื™ืœ ืืช ื”ืืคืœื™ืงืฆื™ื” ืขืœ ื™ื“ื™ ืœื—ื™ืฆื” ืขืœ ืื™ื™ืงื•ืŸ, ื‘ืœื™ ืœื”ืฆื˜ืจืš ืืช R ื‘ื›ืœืœ. ื”ืฉืชืžืฉืชื™ ื‘ืœื™ื ืง ื”ื‘ื:ย Running a Shiny app using a shortcutย ื›ื“ื™ ืœื‘ืฆืข ืืช ื–ื”.
ืื‘ืœย ืขื›ืฉื™ื• ื ืชืงืœืชื™ ื‘ื‘ืขื™ื” ืฉืื ื™ ืœื ืžืกื•ื’ืœ ืœืคืชื•ืจ.
ื›ืฉืืชื” ืžืจื™ืฅ ืืช ื”ืืคืœื™ืงืฆื™ื” ื‘-Shiny ื™ื“ื ื™ืช, ื”ื›ื•ืœ ืขื•ื‘ื“ ื•ืื™ืŸ ื‘ืขื™ื”. ืื‘ืœ ื›ืฉืืชื” ืžืฉืชืžืฉ ื‘ืื™ื™ืงื•ืŸ ืขื•ืœื” ืฉื’ื™ืื”:ย pandoc document conversion failed with error 127

ืงื•ื“ ื”ืืคืœื™ืงืฆื™ื” ืฉืœื™ [app.r] ื ืจืื” ื›ื›ื”:

library(shiny)
library(knitr)
ui <- fluidPage(
titlePanel("testing for error"),
sidebarPanel(
textInput(inputId = "year",label = "Year",placeholder = "2018")
),
mainPanel(
uiOutput("report")
)
)
server <- function(input, output) {
output$report <- renderUI({
year <- input$year
rmdfiles <- c("C:\\Users\\ge_a\\Desktop\\test\\report_test.Rmd")
knitr::knit2pandoc(input = rmdfiles,encoding = "UTF-8",quiet = TRUE)
includeMarkdown("C:\\Users\\ge_a\\Desktop\\test\\report_test.md")
})
}
shinyApp(ui = ui, server = server)

ื›ืคื™ ืฉื ื™ืชืŸ ืœืจืื•ืช, ื‘ืชื•ืš ื”ืืคืœื™ืงืฆื™ื™ื” ื”ื•ื˜ืžืข ืงื•ื‘ืฅ markdown ื“ื™ื ืืžื™ ืขื ืžืฉืชื ื™ื ืžื”ืืคืœื™ืงืฆื™ื™ื”, ื•ื›ื•ืœืœ ื‘ืชื•ื›ื• ืžื™ืœื™ื ื‘ืขื‘ืจื™ืช.

ื”ื ื” ื”ืงื•ื“ ืฉืœ ืงื•ื“ ื”-markdown ืฉืœื™ [report_test.rmd]:ย 


---
title: "Test"
author: "Abe"
date: "August 20, 2018"
output: html_document
---
<style>
h1 {
direction: rtl;
}
p {
direction: rtl;
color: #000000;
font-size: 14px;
}
</style>
ื”ืฉื ื” ืฉืœื ื• ื”ื™ื: `r year`
ื‘ืขื–ืจืช ื”ืœื™ื ืง ืฉืฆื™ื™ื ืชื™ ืœืขื™ืœ, ื™ืฆืจืชื™ ืงื•ื‘ืฅ run.r ื•ื›ืŸ ืงื•ื‘ืฅ batch ืœืžื˜ืจืช ื™ืฆื™ืจืช ื”ืงื™ืฆื•ืจ ื“ืจืš ื”ืžื‘ื•ืงืฉ ืฉื“ืจื›ื• ืื ืฉื™ื ื™ื•ื›ืœื• ืœื”ืคืขื™ืœ ืืช ื”ืืคืœื™ืงืฆื™ื™ื”.
ืงื•ื‘ืฅ ื”-run.rย ืฉืœื™ ื”ื•ื ื–ื”:

library(shiny)
Sys.setlocale("LC_ALL","hebrew")
runApp('C:/Users/ge_a/Desktop/test',launch.browser = TRUE)
ืงื•ื‘ืฅ ื”-batch ืฉืœื™ [test.bat]ย ื›ื•ืœืœ ืจืง ืฉื•ืจื” 1:

"C:\Program Files\R\R-3.4.2\bin\R.exe" CMD BATCH "run.r"


ืื ื™ ืžืฆืจืฃ ืืช ื”ืคืœื˜ ืฉืœ sessionInfo ื›ื™ ืจืื™ืชื™ ืฉื–ื” ืขื•ื–ืจ ืœืื ืฉื™ื ืœื”ื‘ื™ืŸ ืขื ืื™ื–ื• ืžืขืจื›ืช ืื ื™ ืžืฉืชืžืฉ.


R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Hebrew_Israel.1255 LC_CTYPE=Hebrew_Israel.1255 LC_MONETARY=Hebrew_Israel.1255 LC_NUMERIC=C
[5] LC_TIME=Hebrew_Israel.1255
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bindrcpp_0.2 shiny_1.0.5 DT_0.2 gridExtra_2.3 shinyBS_0.61 XLConnect_0.2-13
[7] XLConnectJars_0.2-13 reshape2_1.4.3 dplyr_0.7.4 ggplot2_2.2.1 readxl_1.0.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.16 cellranger_1.1.0 pillar_1.2.1 compiler_3.4.2 plyr_1.8.4 bindr_0.1 tools_3.4.2 digest_0.6.15
[9] evaluate_0.10.1 jsonlite_1.5 tibble_1.4.2 gtable_0.2.0 pkgconfig_2.0.1 rlang_0.2.0.9001 yaml_2.1.14 rJava_0.9-8
[17] stringr_1.2.0 knitr_1.20 htmlwidgets_1.2 rprojroot_1.2 grid_3.4.2 glue_1.1.1 R6_2.2.2 rematch_1.0.1
[25] rmarkdown_1.6 magrittr_1.5 backports_1.1.1 scales_0.5.0.9000 htmltools_0.3.6 assertthat_0.2.0 mime_0.5 colorspace_1.3-2
[33] xtable_1.8-2 httpuv_1.3.5 stringi_1.1.5 lazyeval_0.2.1 munsell_0.4.3 markdown_0.8

ื‘ื–ืžืŸ ืฉื—ื™ืคืฉืชื™ ืชืฉื•ื‘ื” (ื›ื‘ืจ ื›ืžืขื˜ ื—ื•ื“ืฉื™ื™ื) ืžืฆืืชื™ ืืชย ย ื”ื”ืกื‘ืจ ื”ื–ื”ย ืœืฉื’ื™ืื” ืฉืื ื™ ืžืงื‘ืœ ืื‘ืœ ืื ื™ ืœื ืžื‘ื™ืŸ ื›ืœ ื›ืš ืื™ืš ืœืคืชื•ืจ ืื•ืชื” ืื ื™ ื›ืŸ ืžื‘ื™ืŸ ืฉื”ื™ื ืงืฉื•ืจื” ื‘ืื•ื•ืคืŸ ืžืกื•ื™ื ืœื–ื™ื›ืจื•ืŸ ืฉื”ืžื—ืฉื‘ ืžืคื ื” ืœืคืขื•ืœื”.

ืชื•ื“ื” ืจื‘ื” ืžืจืืฉ ืœื›ื•ืœื!!

amit gal

unread,
Oct 4, 2018, 7:11:36โ€ฏAM10/4/18
to israel-r-...@googlegroups.com
ื ืกื” ืœืงืจื•ื ื›ืืŸ:
https://stackoverflow.com/questions/33499651/rmarkdown-in-shiny-application

--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ืื‘ืจื”ื ืคื™ื™ื ืกื™ืœื‘ืจโ€Ž

unread,
Oct 5, 2018, 4:01:07โ€ฏAM10/5/18
to Israel R User Group

ื”ื™ ืขืžื™ืช,

ื›ื‘ืจ ื ื™ืกื™ืชื™ ื‘ืขื‘ืจ ืืช ื”ืคืชืจื•ืŸ ื”ื–ื”, ื•ื‘ืขื•ื“ ืฉื”ืืคืœื™ืงืฆื™ื” ืื›ืŸ ืžื•ืคืขืœืช ื‘ืื•ืคืŸ ืžืœื, ื”ื™ื ืœื ืฉืžื™ืฉื” ืžื›ื™ื•ื•ืŸ ืฉื›ืœ ื”ืžืœืœ ื”ื•ืคืš ืœื”ื™ื•ืช ื’'ื™ื‘ืจื™ืฉ...

ืชืงืŸ ืื•ืชื™ ืื ืื ื™ ื˜ื•ืขื” ืื‘ืœ ืžื” ืฉื”ืชื›ื•ื•ื ืช ื–ื” ืฉืื ื™ ืื—ืœื™ืฃ ืืช ื”ืฉื•ืจื•ืช:

knitr::knit2pandoc(input = rmdfiles,encoding = "UTF-8",quiet = TRUE)
includeMarkdown("C:\\Users\\ge_a\\Desktop\\test\\report_test.md")

ื‘-ย 
HTML(markdown::markdownToHTML(knit(rmdfiles, quiet = TRUE, encoding = "UTF-8")))

ืื‘ืœ ื–ื” ืœื ืคื•ืชืจ ืืช ื‘ืขื™ื™ืช ื”ื’'ื™ื‘ืจื™ืฉ... ื™ืฉ ืœืš ื”ืฆืขื”?

ืกื•ืค"ืฉ ื ืขื™ื ื•ืชื•ื“ื” ืจื‘ื”!!

ืื‘ืจื”ื ืคื™ื™ื ืกื™ืœื‘ืจโ€Ž

unread,
Oct 8, 2018, 7:30:59โ€ฏAM10/8/18
to israel-r-...@googlegroups.com
ื”ื™ื™ ืฉืœื•ื ืœื›ื•ืœื!

ืื– ืžืฆืืชื™ ืื—ืจื™ ื—ื•ื“ืฉื™ื ืคืชืจื•ืŸ ืœื‘ืขื™ื” ื”ื–ื•... ืื ื™ ืžืžืฉ ืžืžืœื™ืฅ ืœื ืกื•ืช ืื•ืชื” ื›ื™ ื–ื” ื”ื•ืคืš ืืช ื”ื—ื•ื•ื™ื™ืช ืฉื™ืžื•ืฉ ื‘-Shiny ืœืžืžืฉ ืžื’ื ื™ื‘ื”!! ื‘ืžื™ื•ื—ื“ ืขื‘ื•ืจ ืื ืฉื™ื ื‘ืœื™ ืจืงืข ืžืขืžื™ืง ื‘ืชื›ื ื•ืช...
ืงื™ื‘ืœืชื™ ืชืฉื•ื‘ื” ื‘-Stackoverflow ื•ืฉื ื ืืžืจ ื‘ืขืฆื ืฉื”ื‘ืขื™ื” ื”ื™ื ืฉื”ืงื•ื‘ืฅ bat ืœื ืžืฆืœื™ื— ืœืžืฆื•ื ืืช ื”-pandoc (ืœืžื™ื˜ื‘ ื”ื‘ื ืชื™ ื”ื—ืœืง ืฉืžืขืฆื‘ ื•ื‘ื•ื ื” ืืช ืืชืจ ื”ืื™ื ื˜ืจื ื˜, ื•-Shiny ืžืฉืชืžืฉ ื‘ื•...)ย 
ื›ืฉืžืจื™ืฆื™ื ืืช ื”ืืคืœื™ืงืฆื™ื™ื” ื“ืจืš ื”ืงื•ื‘ืฅ bat ืื– ืฆืจื™ืš ืœืกืคืง ืืช ื”ืžื™ืงื•ื ื”ื–ื”.

ื•ืœื›ืŸ ืื ืžื•ืกื™ืคื™ื ืืช ื”ืฉื•ืจื” (ื‘ืจืืฉ ืงื•ื‘ืฅ ื”-bat)ย ืื– ื–ื” ืขื•ื‘ื“!!ย :

path %PATH%;c:\program files\rstudio\bin\pandoc

ืื‘ืจื”ื.

โ€ซื‘ืชืืจื™ืš ื™ื•ื ื•ืณ, 5 ื‘ืื•ืงืณ 2018 ื‘-11:01 ืžืืช ืื‘ืจื”ื ืคื™ื™ื ืกื™ืœื‘ืจ <โ€ชabe0...@gmail.comโ€ฌโ€>:โ€ฌ
--
You received this message because you are subscribed to a topic in the Google Groups "Israel R User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/israel-r-user-group/QrXq-ZZoyag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to israel-r-user-g...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages