2014-11-30 4 views
1

방금 ​​Rstudio에서 거래 전략을 수립 했으므로 ShinyApps.io에 배포 할 계획이었습니다. 여기에 문제가 생긴다.ShinyApps.io를 사용하는 동안 "getSymbols"함수를 찾을 수 없습니다.

우선이 같은 경고 메시지가 항상 존재한다는 것입니다 :

Warning messages: 
1: In getFromNamespace("checkEncoding", "shiny")(file) : 
    The file "F:\newFinal/server.R" is not encoded in UTF-8. Please convert its encoding to UTF-8 (e.g. use the menu `File -> Save with Encoding` in RStudio). See http://shiny.rstudio.com/articles/unicode.html for more info. Falling back to the encoding "native.enc". 
2: In getFromNamespace("checkEncoding", "shiny")(file) : 
    The file "F:\newFinal/server.R" is not encoded in UTF-8. Please convert its encoding to UTF-8 (e.g. use the menu `File -> Save with Encoding` in RStudio). See http://shiny.rstudio.com/articles/unicode.html for more info. Falling back to the encoding "native.enc". 

심지어 내가 인코딩 UTF-8로 파일을 저장, 그것은 여전히 ​​때마다 경고 나 응용 프로그램을 배포하는 것이 나에게 보여줍니다.

또 다른 것은 내가 다음과 같이 ShinyApps에있는 다른 파일을 소스 할 수 없다는 것입니다 :

source("helpers.R") 
#source("loadfunction.R") 
source("main2.R") 
#source("main.R") 
source("plotperiod.R") 

다음 로그는 시스템 함수 "getSymbols"를 찾을 수 있음을 보여줍니다. 다음과 같이이 문제를 해결하려고하지만, 파일을 소스하기 위해 경우

2014-11-30T05:01:21.252572+00:00 shinyapps[shuttle]: rmarkdown version: 0.0.0 
2014-11-30T05:01:21.251463+00:00 shinyapps[shuttle]: Shiny version: 0.10.2.1 
2014-11-30T05:01:21.253004+00:00 shinyapps[shuttle]: knitr version: 0.0.0 
2014-11-30T05:01:21.517405+00:00 shinyapps[shuttle]: 
2014-11-30T05:01:21.517408+00:00 shinyapps[shuttle]: Starting Shiny with process ID: '25' 
2014-11-30T05:01:21.524432+00:00 shinyapps[shuttle]: 
2014-11-30T05:01:21.524434+00:00 shinyapps[shuttle]: Listening on http://0.0.0.0:35292 
2014-11-30T05:01:22.543644+00:00 shinyapps[shuttle]: Error in eval(expr, envir, enclos) : could not find function "getSymbols" 
2014-11-30T05:08:22.837418+00:00 shinyapps[shuttle]: R version: 3.1.1 
2014-11-30T05:08:22.838692+00:00 shinyapps[shuttle]: rmarkdown version: 0.0.0 
2014-11-30T05:08:22.837469+00:00 shinyapps[shuttle]: Shiny version: 0.10.2.1 
2014-11-30T05:08:22.839117+00:00 shinyapps[shuttle]: knitr version: 0.0.0 
2014-11-30T05:08:23.115849+00:00 shinyapps[shuttle]: 
2014-11-30T05:08:23.115852+00:00 shinyapps[shuttle]: Starting Shiny with process ID: '12' 
2014-11-30T05:08:23.122818+00:00 shinyapps[shuttle]: 
2014-11-30T05:08:23.122821+00:00 shinyapps[shuttle]: Listening on http://0.0.0.0:56837 
2014-11-30T05:08:31.778390+00:00 shinyapps[shuttle]: Shiny version: 0.10.2.1 
2014-11-30T05:08:31.779947+00:00 shinyapps[shuttle]: knitr version: 0.0.0 
2014-11-30T05:08:31.778335+00:00 shinyapps[shuttle]: R version: 3.1.1 
2014-11-30T05:08:31.779528+00:00 shinyapps[shuttle]: rmarkdown version: 0.0.0 
2014-11-30T05:08:32.080184+00:00 shinyapps[shuttle]: 
2014-11-30T05:08:32.080190+00:00 shinyapps[shuttle]: Starting Shiny with process ID: '25' 
2014-11-30T05:08:32.087453+00:00 shinyapps[shuttle]: 
2014-11-30T05:08:32.087455+00:00 shinyapps[shuttle]: Listening on http://0.0.0.0:55221 
2014-11-30T05:08:33.083355+00:00 shinyapps[shuttle]: Error in eval(expr, envir, enclos) : could not find function "getSymbols" 
2014-11-30T05:11:27.282921+00:00 shinyapps[shuttle]: Shiny version: 0.10.2.1 
2014-11-30T05:11:27.284559+00:00 shinyapps[shuttle]: knitr version: 0.0.0 
2014-11-30T05:11:27.282870+00:00 shinyapps[shuttle]: R version: 3.1.1 
2014-11-30T05:11:27.284140+00:00 shinyapps[shuttle]: rmarkdown version: 0.0.0 
2014-11-30T05:11:27.554872+00:00 shinyapps[shuttle]: 
2014-11-30T05:11:27.554875+00:00 shinyapps[shuttle]: Starting Shiny with process ID: '12' 
2014-11-30T05:11:27.561737+00:00 shinyapps[shuttle]: 
2014-11-30T05:11:27.561740+00:00 shinyapps[shuttle]: Listening on http://0.0.0.0:33719 
2014-11-30T05:11:34.514578+00:00 shinyapps[shuttle]: Shiny version: 0.10.2.1 
2014-11-30T05:11:34.516275+00:00 shinyapps[shuttle]: knitr version: 0.0.0 
2014-11-30T05:11:34.514528+00:00 shinyapps[shuttle]: R version: 3.1.1 
2014-11-30T05:11:34.515806+00:00 shinyapps[shuttle]: rmarkdown version: 0.0.0 
2014-11-30T05:11:34.784230+00:00 shinyapps[shuttle]: 
2014-11-30T05:11:34.784232+00:00 shinyapps[shuttle]: Starting Shiny with process ID: '25' 
2014-11-30T05:11:34.791157+00:00 shinyapps[shuttle]: 
2014-11-30T05:11:34.791160+00:00 shinyapps[shuttle]: Listening on http://0.0.0.0:47994 
2014-11-30T05:11:36.003478+00:00 shinyapps[shuttle]: Error in eval(expr, envir, enclos) : could not find function "getSymbols" 
2014-11-30T05:12:10.176603+00:00 shinyapps[shuttle]: R version: 3.1.1 
2014-11-30T05:12:10.177833+00:00 shinyapps[shuttle]: rmarkdown version: 0.0.0 
2014-11-30T05:12:10.176681+00:00 shinyapps[shuttle]: Shiny version: 0.10.2.1 
2014-11-30T05:12:10.178237+00:00 shinyapps[shuttle]: knitr version: 0.0.0 
2014-11-30T05:12:10.483932+00:00 shinyapps[shuttle]: 
2014-11-30T05:12:10.483938+00:00 shinyapps[shuttle]: Starting Shiny with process ID: '33' 
2014-11-30T05:12:10.491297+00:00 shinyapps[shuttle]: 
2014-11-30T05:12:10.491300+00:00 shinyapps[shuttle]: Listening on http://0.0.0.0:35973 
2014-11-30T05:12:11.486962+00:00 shinyapps[shuttle]: Error in eval(expr, envir, enclos) : could not find function "getSymbols" 

답변

0

확실하지, 당신은 TRUElocal 인수를 추가하고 설정해야합니다

source("helpers.R", local=TRUE) 
source("main2.R", local=TRUE) 
source("plotperiod.R", local=TRUE) 
+0

이것은 'didn를 내 원인을 도우 라. 여전히 오류가 발생합니다. – farhankhwaja

+0

원래 게시물과 동일한 문제가 있으며 오류가 계속 발생합니까? 그렇다면'shinyapps :: showLogs()'의 출력을 복사 해 주시겠습니까? –