2015-05-12 71 views
1

我想簡單地在shinyapps.io網站上發佈我的應用程序。當我運行deployApp()我得到這個消息:在shinyapps.io中部署R應用程序 - 錯誤:解析清單

錯誤:未處理的異常:子任務32916512失敗:錯誤分析清單:不支持的區域:4409_4409.UTF-8 執行暫停

Preparing to deploy application...DONE 
Uploading application bundle...DONE 
Deploying application: 42336... 
Waiting for task: 32916511 
    error: Parsing manifest 
################################## Begin Log ################################## 
################################### End Log ################################### 
Error: Unhandled Exception: Child Task 32916512 failed: Error parsing manifest: Unsupported locale: 4409_4409.UTF-8 
Execution halted 
  • 我從TXT文件中讀取數據
  • 我已經嘗試使用R版本3.1.1,3.1.3,3.0.2但仍然存在錯誤。
  • 編輯:我剛剛發現,當我發佈空白server.R用一個簡單的ui.R

這裏是一些代碼,甚至出現錯誤,server.R

library(shiny) 
library(ggplot2) 
shinyServer(function(input,output){ 
    output$graph <- renderPlot({ 
    if(input$radiobutton=="Tools"){ 
     x <- as.matrix(allSkillsNum3[-1]) 
     rownames(x) <- allSkillsNum3[, 1] 
     p=barplot(t(x),horiz=TRUE,legend.text = T,col=c(1,2,3,4,5,6,7,8))   
    } 
    else{ 
     x <- as.matrix(allSkillsNum3[-1]) 
     rownames(x) <- allSkillsNum3[, 1] 
     p=barplot(t(x)... 

    } 
    print(p) }) }) 
+0

我不確定,但它看起來像一個編碼問題,特別是因爲你正在閱讀一個TXT。 –

+0

我也嘗試過使用excel文件,但它不適用於我的系統。在講師的系統上運行相同的代碼(對我來說,它只是脫機工作) –

+0

R對excel文件做得不太好;你有沒有試過csv? –

回答

1

它解決,感謝Andy Kipp在shinyapps.io googlegroups ....我會在這裏爲其他程序員提供解決方案

這是因爲我在控制面板中的系統語言環境設置爲英語(馬來西亞)。 所以我選擇英語(美國)

控制面板>時鐘,語言和區域>更改位置>管理選項卡>更改系統區域設置

現在,當我運行代碼:

> shinyapps:::systemLocale() 
Detecting system locale ... en_US 
[1] "en_US" 

下一步是部署應用程序......這些步驟如下:

options(shinyapps.locale.cache = FALSE) 

then run: 

shinyapps:::detectLocale() 

Then re-deploy: 

deployApp(...) 

好運

相關問題