Locale error while deploying in Shiny

4,342 views
Skip to first unread message

1053Inator

unread,
Apr 30, 2015, 4:46:33 AM4/30/15
to shinyap...@googlegroups.com
Hi,

I asked this question before at stackoverflow but didn't get any answers there. I also did an extensive google search but found little other questions along the same vein.
So this is the problem:

I have made a Shiny application and get the following error while deploying:

Preparing to deploy application...DONE
Uploading application bundle...Detecting system locale ... Error in 
read.table(file = file, header = header, sep = sep, quote = quote,  :
incomplete final line found by readTableHeader on 'system("systeminfo /FO csv", 
intern = TRUE, wait = TRUE)'
Calls: <Anonymous> ... systemLocale -> systemInfo -> read.csv -> read.table
Execution halted

I have to tried to change my locale by this piece of code but the problem persists:

Sys.setlocale("LC_ALL","English")

Andy Kipp

unread,
Apr 30, 2015, 12:33:08 PM4/30/15
to 1053Inator, shinyap...@googlegroups.com
Hi,

First, can you send the output for:

sessionInfo()

Thanks
-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/50e7ee28-9add-47b4-b9f4-0021c6ce3104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1053Inator

unread,
Apr 30, 2015, 3:50:59 PM4/30/15
to shinyap...@googlegroups.com
This is the output, thanks in advance for taking a moment to answer my question.

R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Dutch_Belgium.1252  LC_CTYPE=Dutch_Belgium.1252    LC_MONETARY=Dutch_Belgium.1252
[4] LC_NUMERIC=C                   LC_TIME=Dutch_Belgium.1252    

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

other attached packages:
[1] shiny_0.11.1

loaded via a namespace (and not attached):
 [1] bitops_1.0-6     digest_0.6.8     htmltools_0.2.6  httpuv_1.3.2     mime_0.2        
 [6] R6_2.0.1         Rcpp_0.11.5      RCurl_1.95-4.5   RJSONIO_1.3-0    shinyapps_0.3.63
[11] tools_3.1.2      xtable_1.7-4    

Andy Kipp

unread,
Apr 30, 2015, 3:58:01 PM4/30/15
to 1053Inator, shinyap...@googlegroups.com
I pushed a fix to the shinyapps package about an hour ago.

Would you mind updating the package and trying to deploy again?

devtools::install_github('rstudio/shinyapps')


Thanks
-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.

1053Inator

unread,
May 1, 2015, 5:06:55 AM5/1/15
to shinyap...@googlegroups.com
Problem is solved, thanks a lot for making that update.

Youssef Akel

unread,
May 6, 2015, 8:24:42 PM5/6/15
to shinyap...@googlegroups.com, isaa...@gmail.com
Hello Andy,

I'm having a similar issue with the following message when I try to deploy:

Preparing to deploy application...DONE
Uploading application bundle...Error in file.path(shinyappsConfigDir(), "locale.dcf") : 
  impossible de trouver la fonction "shinyappsConfigDir"
Calls: <Anonymous> ... localeCacheFile -> normalizePath -> path.expand -> file.path

The package update up to the github version didn't resolve it.

Here is the output of my sessionInfo():

R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

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

other attached packages:
[1] mapproj_1.2-2        maps_2.3-9           ggmap_2.4            ggplot2_1.0.1        jsonlite_0.9.16      dplyr_0.4.1         
[7] shinydashboard_0.4.0 shiny_0.11.1        

loaded via a namespace (and not attached):
 [1] Rcpp_0.11.6         plyr_1.8.2          tools_3.2.0         digest_0.6.8        gtable_0.1.2        lattice_0.20-31    
 [7] png_0.1-7           DBI_0.3.1           rstudioapi_0.3.1    parallel_3.2.0      proto_0.3-10        stringr_1.0.0      
[13] RgoogleMaps_1.2.0.7 grid_3.2.0          R6_2.0.1            jpeg_0.1-8          RJSONIO_1.3-0       sp_1.1-0           
[19] reshape2_1.4.1      magrittr_1.5        scales_0.2.4        htmltools_0.2.6     MASS_7.3-40         rsconnect_0.3.77   
[25] assertthat_0.1      mime_0.3            xtable_1.7-4        colorspace_1.2-6    geosphere_1.3-13    httpuv_1.3.2       
[31] labeling_0.3        stringi_0.4-1       lazyeval_0.1.10     munsell_0.4.2       rjson_0.2.15 

Have you got any clues on that?

Thanks in advance,
/

Youssef Akel

unread,
May 6, 2015, 8:29:32 PM5/6/15
to shinyap...@googlegroups.com, isaa...@gmail.com
I've tried to update rsconnect up to the github version, but I then get:
Preparing to deploy application...DONE

Andy Kipp

unread,
May 8, 2015, 12:54:28 PM5/8/15
to Youssef Akel, shinyap...@googlegroups.com, Isaac Verminck
Youssef,

We just merged some more fixes for rsconnect. Can you try to update again to the latest version from GitHub:

devtools::install_github('rstudio/rsconnect')

Hopefully, this will fix your issue.

-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.

faidherbard

unread,
May 8, 2015, 4:43:50 PM5/8/15
to shinyap...@googlegroups.com, yousse...@gmail.com, isaa...@gmail.com
Hello,

Thanks for the fix, I am able to deploy the app.

However, it seems the locale error is still here, although it is not blocking the deployment anymore ; take a look:

Preparing to deploy application...DONE
Uploading bundle for application: 41593...Detecting system locale ... DONE
Deploying bundle: 183218 for application: 41593 ...
Waiting for task: 32151175
  building: Parsing manifest
  building: Installing packages
  building: Installing files
  building: Pushing image: 179404
  deploying: Starting instances
  terminating: Stopping old instances
Application successfully deployed to http://faidherbard.shinyapps.io/Velib
Error in if (nchar(launchFile) > 0) { : l'argument est de longueur nulle
Calls: <Anonymous>
De plus : Warning message:
Unable to detect locale. Using default: en_US 
Ex�cution arr�t�e

In my case, this is not important as my app doesn't rely on the locale.

Thanks Andy,
/

Andy Kipp

unread,
May 11, 2015, 10:10:45 AM5/11/15
to faidherbard, shinyap...@googlegroups.com, Isaac Verminck
Interesting.

Would you mind sending the output for:

rsconnect:::systemInfo()

Thanks
-Andy

faidherbard

unread,
May 11, 2015, 12:25:07 PM5/11/15
to shinyap...@googlegroups.com, isaa...@gmail.com, yousse...@gmail.com
I get the following error with rsconnect:::systemInfo()

Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
  incomplete final line found by readTableHeader on 'raw'

The standard sessionInfo() gives:

R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252
[4] LC_NUMERIC=C                   LC_TIME=French_France.1252    

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

loaded via a namespace (and not attached):
[1] rsconnect_0.3.78 tools_3.2.0      RCurl_1.95-4.6   RJSONIO_1.3-0    digest_0.6.8     bitops_1.0-6  

Andy Kipp

unread,
May 11, 2015, 4:36:56 PM5/11/15
to faidherbard, shinyap...@googlegroups.com, Isaac Verminck
THanks for that info. 

Do you mind also sending the output for:

system("systeminfo /FO csv", intern=TRUE, wait=TRUE)

I am trying to do track down this locale detection issue.

Thanks
-Andy

Chaendryn Shadowsong

unread,
Aug 9, 2015, 4:08:54 PM8/9/15
to ShinyApps Users, yousse...@gmail.com, isaa...@gmail.com
Hi there,

Getting the same error as OP - though my locale is different.  

Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
 (Using default: en_US) 


Output of sessionInfo():

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

locale:
[1] LC_COLLATE=English_South Africa.1252  LC_CTYPE=English_South Africa.1252    LC_MONETARY=English_South Africa.1252
[4] LC_NUMERIC=C                          LC_TIME=English_South Africa.1252    

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

other attached packages:
[1] shinyapps_0.4.1.4 devtools_1.8.0    shiny_0.12.1     

loaded via a namespace (and not attached):
 [1] Rcpp_0.11.6       digest_0.6.8      bitops_1.0-6      mime_0.3          R6_2.1.0          xtable_1.7-4     
 [7] jsonlite_0.9.16   magrittr_1.5      git2r_0.10.1      httr_1.0.0        stringi_0.5-5     curl_0.9.1       
[13] rstudioapi_0.3.1  xml2_0.1.1        RJSONIO_1.3-0     tools_3.2.1       stringr_1.0.0     RCurl_1.95-4.7   
[19] httpuv_1.3.2      rsconnect_0.4.1.4 rversions_1.0.2   memoise_0.2.1     htmltools_0.2.6 

My environment was setup after the last update posted here (27 July), devtools and shinyapps was installed today. 

Thanks
Chaen

Andy Kipp

unread,
Aug 10, 2015, 9:43:00 AM8/10/15
to Chaendryn Shadowsong, ShinyApps Users, Youssef Akel, Isaac Verminck
Hi,

That looks like a warning message, which is unusual but shouldn't be harmful in most cases. Are you seeing an error or other problem you suspect is related to locale?

-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
Message has been deleted
Message has been deleted

Denis Coutrot

unread,
Aug 3, 2016, 9:22:41 AM8/3/16
to shinyapps.io Users
Hi Andy,

I encountered the same issue as the others: 
"Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
 (Using default: en_US) "

So I updated my packages, but I am still unable to connect. Here is my sessionInfo():

R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

loaded via a namespace (and not attached):
 [1] magrittr_1.5         plyr_1.8.4           BiocInstaller_1.22.3 rsconnect_0.4.3      tools_3.3.0         
 [6] reshape2_1.4.1       RCurl_1.95-4.8       Rcpp_0.12.6          RJSONIO_1.3-0        stringi_1.1.1       
[11] stringr_1.0.0        digest_0.6.10        packrat_0.4.7-1      pacman_0.4.1         bitops_1.0-6

and here is my log (I also reinstalled package BiocInstaller   even though I don't really know what is its use.
2016-08-03T13:05:36.087500+00:00 shinyapps[118213]: 
2016-08-03T13:05:36.103450+00:00 shinyapps[118213]: 
2016-08-03T13:05:36.103452+00:00 shinyapps[118213]: Listening on http://0.0.0.0:42056
2016-08-03T13:05:36.087502+00:00 shinyapps[118213]: Starting R with process ID: '17'
2016-08-03T13:05:35.929410+00:00 shinyapps[118213]: RJSONIO version: 1.3.0
2016-08-03T13:05:36.240823+00:00 shinyapps[118213]: 
2016-08-03T13:05:36.240825+00:00 shinyapps[118213]: Attaching package: ‘DT’
2016-08-03T13:05:36.240826+00:00 shinyapps[118213]: 
2016-08-03T13:05:36.241575+00:00 shinyapps[118213]: The following objects are masked from ‘package:shiny’:
2016-08-03T13:05:36.241576+00:00 shinyapps[118213]: 
2016-08-03T13:05:36.241577+00:00 shinyapps[118213]:     dataTableOutput, renderDataTable
2016-08-03T13:05:36.241578+00:00 shinyapps[118213]: 
2016-08-03T13:05:42.984005+00:00 shinyapps[118213]: Bioconductor version 3.3 (BiocInstaller 1.22.3), ?biocLite for help
2016-08-03T13:05:43.011511+00:00 shinyapps[118213]: Installing package into ‘/usr/local/lib/R/site-library’
2016-08-03T13:05:43.011514+00:00 shinyapps[118213]: (as ‘lib’ is unspecified)
2016-08-03T13:05:43.329516+00:00 shinyapps[118213]: Warning: Error in install.packages: unable to install packages
2016-08-03T13:05:43.334800+00:00 shinyapps[118213]: Stack trace (innermost first):
2016-08-03T13:05:43.334801+00:00 shinyapps[118213]:     68: install.packages
2016-08-03T13:05:43.334802+00:00 shinyapps[118213]:     67: .reposInstall
2016-08-03T13:05:43.334803+00:00 shinyapps[118213]:     66: .biocLiteInstall
2016-08-03T13:05:43.334803+00:00 shinyapps[118213]:     65: BiocInstaller::biocLite
2016-08-03T13:05:43.334804+00:00 shinyapps[118213]:     64: eval
2016-08-03T13:05:43.334805+00:00 shinyapps[118213]:     62: withCallingHandlers
2016-08-03T13:05:43.334806+00:00 shinyapps[118213]:     60: withCallingHandlers
2016-08-03T13:05:43.334806+00:00 shinyapps[118213]:     59: suppressMessages
2016-08-03T13:05:43.334811+00:00 shinyapps[118213]:     12: fn
2016-08-03T13:05:43.334807+00:00 shinyapps[118213]:     58: value[[3L]]
2016-08-03T13:05:43.334810+00:00 shinyapps[118213]:     13: runApp
2016-08-03T13:05:43.334813+00:00 shinyapps[118213]:      5: eval
2016-08-03T13:05:43.334807+00:00 shinyapps[118213]:     57: tryCatchOne
2016-08-03T13:05:43.334811+00:00 shinyapps[118213]:     11: doTryCatch
2016-08-03T13:05:43.334807+00:00 shinyapps[118213]:     56: tryCatchList
2016-08-03T13:05:43.334814+00:00 shinyapps[118213]:      2: eval.parent
2016-08-03T13:05:43.334808+00:00 shinyapps[118213]:     55: tryCatch
2016-08-03T13:05:43.334814+00:00 shinyapps[118213]:      3: eval
2016-08-03T13:05:43.334808+00:00 shinyapps[118213]:     54: p_install
2016-08-03T13:05:43.334812+00:00 shinyapps[118213]:     10: tryCatchOne
2016-08-03T13:05:43.335003+00:00 shinyapps[118213]:   unable to install packages
2016-08-03T13:05:43.334809+00:00 shinyapps[118213]:     53: FUN
2016-08-03T13:05:43.334813+00:00 shinyapps[118213]:      7: connect$retry
2016-08-03T13:05:43.334809+00:00 shinyapps[118213]:     52: lapply
2016-08-03T13:05:43.334813+00:00 shinyapps[118213]:      6: eval
2016-08-03T13:05:43.334814+00:00 shinyapps[118213]:      4: eval
2016-08-03T13:05:43.334805+00:00 shinyapps[118213]:     63: eval
2016-08-03T13:05:43.334810+00:00 shinyapps[118213]:     51: sapply
2016-08-03T13:05:43.334812+00:00 shinyapps[118213]:      9: tryCatchList
2016-08-03T13:05:43.334815+00:00 shinyapps[118213]:      1: local
2016-08-03T13:05:43.334805+00:00 shinyapps[118213]:     61: suppressWarnings
2016-08-03T13:05:43.334810+00:00 shinyapps[118213]:     50: pacman::p_load
2016-08-03T13:05:43.334812+00:00 shinyapps[118213]:      8: tryCatch
2016-08-03T13:05:43.335001+00:00 shinyapps[118213]: Error in install.packages(pkgs = doing, lib = lib, ...) : 

I am a little bit stuck so I wish you can help me on this !
Best regards,

Denis


Joshua Spiewak

unread,
Aug 8, 2016, 9:55:59 AM8/8/16
to shinyapps.io Users
Hi Denis,

The log you included looks like you might be performing an install in your code, rather than referencing the package with a library call.

If you aren't sure why you have included BiocInstaller (namely, if you are not using a package that is available at Bioconductor), try removing it.

Also, what is the output of 

rsconnect::appDependencies()

Are there more log messages than what you have shown?

Mathilde Saguin

unread,
Aug 28, 2016, 12:35:36 PM8/28/16
to shinyapps.io Users, isaa...@gmail.com
Hi,

I have made a Shiny application  and get the following error while deploying:

Detecting system locale ... DONE
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE,  : 
  arguments imply differing number of rows: 1, 0
Calls: <Anonymous> ... as.data.frame -> as.data.frame.list -> do.call -> <Anonymous>
De plus : Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
 (Using default: en_US) 
Ex?cution arr?t?e


You will find some indicators :

devtools::session_info()
Session info -----------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.3.1 (2016-06-21)
 system   x86_64, mingw32             
 ui       RStudio (0.99.902)          
 language (EN)                        
 collate  French_France.1252          
 tz       Europe/Paris                
 date     2016-08-25                  

Packages ---------------------------------------------------------------------------------------------------------
 package        * version    date       source                               
 assertthat       0.1        2013-12-06 CRAN (R 3.3.1)                       
 base64enc        0.1-3      2015-07-28 CRAN (R 3.3.0)                       
 bitops           1.0-6      2013-08-17 CRAN (R 3.3.0)                       
 chartjs        * 0.3.3.9000 2016-08-08 Github (tutuchan/chartjs@1830bd2)    
 chron            2.3-47     2015-06-24 CRAN (R 3.3.1)                       
 colorspace       1.2-6      2015-03-11 CRAN (R 3.3.1)                       
 data.table     * 1.9.6      2015-09-19 CRAN (R 3.3.1)                       
 DBI              0.5        2016-08-11 CRAN (R 3.3.1)                       
 devtools         1.12.0     2016-06-24 CRAN (R 3.3.1)                       
 digest           0.6.10     2016-08-02 CRAN (R 3.3.1)                       
 dplyr          * 0.5.0      2016-06-24 CRAN (R 3.3.1)                       
 DT             * 0.2        2016-08-09 CRAN (R 3.3.1)                       
 foreign          0.8-66     2015-08-19 CRAN (R 3.3.1)                       
 ggplot2        * 2.1.0      2016-03-01 CRAN (R 3.3.1)                       
 gridExtra        2.2.1      2016-02-29 CRAN (R 3.3.1)                       
 gtable           0.2.0      2016-02-26 CRAN (R 3.3.1)                       
 htmltools        0.3.5      2016-03-21 CRAN (R 3.3.1)                       
 htmlwidgets      0.7        2016-08-17 Github (ramnathv/htmlwidgets@346f87c)
 httpuv           1.3.3      2015-08-04 CRAN (R 3.3.1)                       
 httr             1.2.1      2016-07-03 CRAN (R 3.3.1)                       
 jsonlite         1.0        2016-07-01 CRAN (R 3.3.1)                       
 knob           * 0.2        2016-08-17 Github (htmlwidgets/knob@823e8fd)    
 lattice          0.20-33    2015-07-14 CRAN (R 3.3.1)                       
 leaflet        * 1.0.1.9004 2016-08-17 Github (rstudio/leaflet@e2751ff)     
 magrittr         1.5        2014-11-22 CRAN (R 3.3.1)                       
 maptools       * 0.8-39     2016-01-30 CRAN (R 3.3.1)                       
 memoise          1.0.0      2016-01-29 CRAN (R 3.3.1)                       
 mime             0.5        2016-07-07 CRAN (R 3.3.1)                       
 miniUI           0.1.1      2016-01-15 CRAN (R 3.3.1)                       
 munsell          0.4.3      2016-02-13 CRAN (R 3.3.1)                       
 packrat          0.4.7-1    2016-03-28 CRAN (R 3.3.1)                       
 plotly         * 3.6.0      2016-05-18 CRAN (R 3.3.1)                       
 plyr           * 1.8.4      2016-06-08 CRAN (R 3.3.1)                       
 R6               2.1.3      2016-08-19 CRAN (R 3.3.1)                       
 RColorBrewer   * 1.1-2      2014-12-07 CRAN (R 3.3.0)                       
 Rcpp             0.12.6     2016-07-19 CRAN (R 3.3.1)                       
 RCurl            1.95-4.8   2016-03-01 CRAN (R 3.3.0)                       
 reshape2       * 1.4.1      2014-12-06 CRAN (R 3.3.1)                       
 rgdal          * 1.1-10     2016-05-12 CRAN (R 3.3.1)                       
 RJSONIO          1.3-0      2014-07-28 CRAN (R 3.3.0)                       
 rsconnect      * 0.4.4      2016-08-25 Github (rstudio/rsconnect@bf90e64)   
 rstudioapi       0.6        2016-06-27 CRAN (R 3.3.1)                       
 scales           0.4.0      2016-02-26 CRAN (R 3.3.1)                       
 shiny          * 0.13.2     2016-03-28 CRAN (R 3.3.1)                       
 shinyapps      * 0.4.1.8    2016-08-25 Github (rstudio/shinyapps@4dd3a9d)   
 shinydashboard * 0.5.1      2015-09-09 CRAN (R 3.3.1)                       
 shinyjs        * 0.7        2016-08-21 CRAN (R 3.3.1)                       
 sp             * 1.2-3      2016-04-14 CRAN (R 3.3.1)                       
 stringi          1.1.1      2016-05-27 CRAN (R 3.3.0)                       
 stringr        * 1.1.0      2016-08-19 CRAN (R 3.3.1)                       
 tibble           1.1        2016-07-04 CRAN (R 3.3.1)                       
 tidyr          * 0.6.0      2016-08-12 CRAN (R 3.3.1)                       
 viridis          0.3.4      2016-03-12 CRAN (R 3.3.1)                       
 withr            1.0.2      2016-06-20 CRAN (R 3.3.1)                       
 xtable           1.8-2      2016-02-05 CRAN (R 3.3.1)                       
 yaml             2.1.13     2014-06-12 CRAN (R 3.3.1) 
 
 
 rsconnect::appDependencies()
   package version source
1 packrat 0.4.7-1   CRAN


rsconnect:::systemInfo()
Error in read.table(file = file, header = header, sep = sep, quote = quote,  : 
  incomplete final line found by readTableHeader on 'raw'


Thanks a lot,

Mathilde

Denis Coutrot

unread,
Aug 29, 2016, 4:25:38 PM8/29/16
to Mathilde Saguin, shinyapps.io Users, isaa...@gmail.com
Hi Mathilde,

I don't if it is the same for you, but my problem was solved as soon as I removed the change in directory I wrote in my code.
I hope it helps and good luck.
Regards,

Denis

--
You received this message because you are subscribed to a topic in the Google Groups "shinyapps.io Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shinyapps-users/Fuh74H78G4s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shinyapps-users+unsubscribe@googlegroups.com.
To post to this group, send email to shinyapps-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/61152191-6de2-48d8-bd3e-971c7a7c528d%40googlegroups.com.

Peter Addo

unread,
Sep 13, 2016, 3:12:41 AM9/13/16
to shinyapps.io Users, isaa...@gmail.com
Hi Andy,,

I'm having a similar issue with the following message when I try to deploy:

Deployment completed: https://datam.shinyapps.io/kmtrackerdemo/ Warning message: Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw' (Using default: en_US)

I have updated the package but it still persist:
devtools::install_github('rstudio/shinyapps')


I have attached a copy of the Logs .

> sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252
[4] LC_NUMERIC=C                   LC_TIME=French_France.1252    

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

other attached packages:
 [1] leaflet_1.0.1        rCharts_0.4.5        dplyr_0.5.0          ggthemes_3.2.0      
 [5] xlsx_0.5.7           xlsxjars_0.6.1       rJava_0.9-8          TTR_0.23-1          
 [9] forecast_7.1         timeDate_3012.100    zoo_1.7-12           plotly_3.6.0        
[13] scales_0.4.0         gridExtra_2.2.1      ggplot2_2.1.0        chron_2.3-47        
[17] plyr_1.8.4           qcc_2.6              reshape2_1.4.1       shinyapps_0.4.1.8   
[21] shinydashboard_0.5.1 shiny_0.13.2         data.table_1.9.6    

loaded via a namespace (and not attached):
 [1] lattice_0.20-33  colorspace_1.2-6 htmltools_0.3.5  yaml_2.1.13      base64enc_0.1-3 
 [6] DBI_0.4-1        stringr_1.0.0    munsell_0.4.3    gtable_0.2.0     htmlwidgets_0.6 
[11] labeling_0.3     tseries_0.10-35  Cairo_1.5-9      httpuv_1.3.3     parallel_3.3.0  
[16] xts_0.9-7        Rcpp_0.12.5      xtable_1.8-2     jsonlite_0.9.20  mime_0.4        
[21] fracdiff_1.4-2   digest_0.6.9     stringi_1.0-1    RJSONIO_1.3-0    grid_3.3.0      
[26] quadprog_1.5-5   tools_3.3.0      bitops_1.0-6     magrittr_1.5     lazyeval_0.1.10 
[31] RCurl_1.95-4.8   tibble_1.0       tidyr_0.4.1      whisker_0.3-2    MASS_7.3-45     
[36] rsconnect_0.4.5  assertthat_0.1   httr_1.2.0       viridis_0.3.4    R6_2.1.2        
[41] nnet_7.3-12     




On Thursday, 30 April 2015 21:58:01 UTC+2, Andy Kipp wrote:
logfile.txt

Denis Coutrot

unread,
Sep 13, 2016, 7:45:36 AM9/13/16
to Peter Addo, shinyapps.io Users
Hi Peter,

My problem was solved as soon as I removed the change in directory (setwd()) I wrote in my code. On her side, Mathilde had an issue with the "_" enclosed in the name of the app. 
I hope it helps and good luck.
Regards,

Denis

--
You received this message because you are subscribed to a topic in the Google Groups "shinyapps.io Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shinyapps-users/Fuh74H78G4s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shinyapps-users+unsubscribe@googlegroups.com.

Peter Addo

unread,
Sep 14, 2016, 6:07:22 AM9/14/16
to shinyapps.io Users, pkadd...@gmail.com
Thanks Denis. My problem still persist. The App successfully deploys but turns grey "Disconnected from Server".

Preparing to deploy application...DONE
Uploading bundle for application: 125206...Detecting system locale ... DONE
Deploying bundle: 557169 for application: 125206 ...
Waiting for task: 248123824
  building: Processing bundle: 557169
  building: Parsing manifest
  building: Building image: 548342
  building: Installing system dependencies
  building: Fetching packages
  building: Installing packages
  building: Installing files
  building: Pushing image: 548342
  deploying: Starting instances
  rollforward: Activating new instances
  terminating: Stopping old instances
Application successfully deployed to https://datam.shinyapps.io/kmtrackerdemo/
Deployment completed: https://datam.shinyapps.io/kmtrackerdemo/
Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
 (Using default: en_US) 



Please how do i fix this issue ? 

Thanks.

Peter
To unsubscribe from this group and all its topics, send an email to shinyapps-use...@googlegroups.com.

To post to this group, send email to shinyap...@googlegroups.com.
logfile.txt

Joshua Spiewak

unread,
Sep 14, 2016, 8:16:38 AM9/14/16
to shinyapps.io Users, pkadd...@gmail.com
Some relevant sections of the user guide:


Looking at your log, you appear to be loading a 250+ MB file. Take a look at your application's dashboard for it memory usage and my guess is that you will see it consuming all the memory for the instance size, at which point it is killed.

You can try a large instance type, or work on the code to make it more memory efficient.

Peter Addo

unread,
Sep 15, 2016, 1:13:13 PM9/15/16
to shinyapps.io Users, pkadd...@gmail.com
Thanks Joshua!

zedleb

unread,
Dec 21, 2016, 6:18:34 AM12/21/16
to shinyapps.io Users, isaa...@gmail.com
I'm also getting a similar error message to the posts in September by Peter et al

The app runs fine locally.

Enter code here...
Preparing to deploy application...DONE
Uploading bundle for application: 146657...
Detecting system locale ... DONE
Deploying bundle: 657095 for application: 146657 ...
Waiting for task: 318109101
  building: Parsing manifest
  building: Building image: 647252
  building: Fetching packages
  building: Installing packages
  building: Installing files
  building: Pushing image: 647252
  deploying: Starting instances
  rollforward: Activating new instances
  unstaging: Stopping old instances
Application successfully deployed to https://zedleb.shinyapps.io/Flows/
Deployment completed: https://zedleb.shinyapps.io/Flows/
Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
 
(Using default: en_US)



Here's my session info:

Enter code here...
>  sessionInfo() 
R version 3.3.2 (2016-10-31)
Platform: i386-w64-mingw32/i386 (32-bit)

Running under: Windows 7 x64 (build 7601) Service Pack 1

locale
:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

attached
base packages:

[1] stats     graphics  grDevices utils     datasets  methods   base    

other attached packages
:
[1] shinydashboard_0.5.3 googleVis_0.6.1      igraph_1.0.1         stringr_1.0.0        dplyr_0.5.0          shiny_0.14.2        

loaded via a
namespace (and not attached):
 
[1] Rcpp_0.12.5     digest_0.6.9    assertthat_0.1  bitops_1.0-6    mime_0.4        R6_2.1.3        jsonlite_1.0    xtable_1.8-2    DBI_0.5        
[10] magrittr_1.5    stringi_1.1.1   lazyeval_0.2.0  RJSONIO_1.3-0   tools_3.3.1     RCurl_1.95-4.8  rsconnect_0.4.4 httpuv_1.3.3    htmltools_0.3.5
[19] tibble_1.1    

It doesn't load at all in IE but in Chrome I get one line saying that a particular object can't be found.

Any help on this much appreciated.

Johannes Harmse

unread,
Feb 28, 2017, 10:06:20 AM2/28/17
to shinyapps.io Users, isaa...@gmail.com
After days of struggling with the same problem, I finally discovered a solution that works for me.

My system locale was set to South African English. I tried changing it to US English in R. R would register the change, but if I tried to publish my app, the change in locale would not register and I would still get the error. I then came to the conclusion, that this way of changing the locale did not register when publishing. I had to manually change my locale in my computer's settings for the change to become permanent. For some reason, I had to change the system locale, as well as the system format to US English, before R registered the change in system locale. it was only then that the warning/error message disappeared after publishing.

Just a side note, my app still gave an internal server error after the system locale was changed, but this was due to a different reason (one of my .rds files was larger than 100mb, which I only later realised was not allowed https://support.rstudio.com/hc/en-us/articles/217717347-How-do-I-load-data-for-my-apps-on-shinyapps-io- ).

I finally got my app to publish, so I hope this piece of information helps someone who is still struggling with this issue.

Johannes
Reply all
Reply to author
Forward
0 new messages