Can't change locale for shinyappsio

shinyappsio shows messages in Russian, which I don't want:

Even though my Sys.getlocale() gives LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252.
I tried to run Sys.setlocale("LC_ALL","C") and re-publish - this didn't help... Couldn't find any documentation about this.

Could you please attach the logs from deploying your application?

The rsconnect package attempts to detect you locale locally and includes that in the bundle it deploys.

Do you mean the log from the Deploy tab of RStudio? It was pretty short:

Preparing to deploy application...DONE
Uploading bundle for application: 1135758...DONE
Deploying bundle: 2389083 for application: 1135758 ...
Waiting for task: 644953377
building: Parsing manifest
building: Building image: 2539484
building: Installing system dependencies
building: Installing packages
building: Installing files
building: Pushing image: 2539484
deploying: Starting instances
rollforward: Activating new instances
terminating: Stopping old instances
Application successfully deployed to
Deployment completed:

As I said, when I call Sys.getlocale(), it gives English_United States.1252 only, so I'm still puzzled where rsconnect takes something different...

What is the output of sessionInfo() in the console from which you are deploying?

You can override the detected locale by setting the option rsconnect.locale to an appropriate value.

R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

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

other attached packages:
 [1] rsconnect_0.8.15   xlsx_0.6.1         ggrepel_0.8.1      vautils_0.1.1.72   magrittr_1.5       devtools_2.1.0    
 [7] usethis_1.5.1      DT_0.8             ggplot2_3.2.1      BiocManager_1.30.4 data.table_1.12.2  shiny_1.3.2       

loaded via a namespace (and not attached):
 [1] tidyselect_0.2.5  remotes_2.1.0     purrr_0.3.2       rJava_0.9-11      colorspace_1.4-1  testthat_2.2.1    htmltools_0.3.6  
 [8] yaml_2.2.0        rlang_0.4.0       pkgbuild_1.0.5    later_0.8.0       pillar_1.4.2      glue_1.3.1        withr_2.1.2      
[15] sessioninfo_1.1.1 munsell_0.5.0     gtable_0.3.0      htmlwidgets_1.3   memoise_1.1.0     callr_3.3.1       httpuv_1.5.1     
[22] ps_1.3.0          crosstalk_1.0.0   curl_4.0          xlsxjars_0.6.1    Rcpp_1.0.2        xtable_1.8-4      openssl_1.4.1    
[29] promises_1.0.1    scales_1.0.0      backports_1.1.4   desc_1.2.0        pkgload_1.0.2     jsonlite_1.6      mime_0.7         
[36] fs_1.3.1          askpass_1.1       digest_0.6.20     processx_3.4.1    dplyr_0.8.3       grid_3.6.0        rprojroot_1.3-2  
[43] cli_1.1.0         tools_3.6.0       lazyeval_0.2.2    tibble_2.1.3      crayon_1.3.4      pkgconfig_2.0.2   prettyunits_1.0.2
[50] assertthat_0.2.1  rstudioapi_0.10   R6_2.4.0          compiler_3.6.0   

I'm not sure what is going on, but the rsconnect package tries to detect the locale and capture it in what is uploaded to Perhaps there is a bug in it? Is there anything you can think of on your local machine that was making use of ru_RU? If you create a new application and deploy it, does it have the same problem?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.