error deploy / publish app with Korean language text string

I have an application with "korean" text in ui and server for example:
titlePanel(title = "리모델링 v1.1")
-ui.R and server.R are reopened with UTF-8
I have
Sys.setlocale("LC_ALL", "korean") in ui.R

it runs fine on my local pc when its

getOption("encoding")
[1] "native.enc"

but when I try to deploy it fails with following error:

Failed to lint file 'server.R'
The linter failed with message:

invalid multibyte string at '<eb><8d><b8>留<81> <ed>썑 <ec>꽭<eb><8c>€<ec>닔 利앷<b0>€", "2. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>€: 85m2 誘몃쭔","3. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>€: 85m2 <ec>씠<ec>긽","4. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 <ec>슜<ec>쟻瑜<a0> <ec>궛異쒓퀎<ec>닔", "5. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏€<ed>븯二쇱감 1<eb><8c>€<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏€<ed>븯二쇱감<ec>옣 1痢<b5> <ec>씠<ed>븯", "6. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏€<ed>븯二쇱감 1<eb><8c>€<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏€<ed>븯二쇱감<ec>옣 2痢<b5> <ec>씠<ec>긽", "7. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 280% <ec>씠<ec>긽", "8. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% <ec>씠<ec>긽 280% 誘몃쭔", "9. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% 誘몃쭔", "10. [<ec>궗<ec>뾽異붿쭊鍮<84>] <ed>룊<eb>떦 媛곸쥌 <ec>궗
Failed to lint file 'ui.R'
The linter failed with message:

invalid multibyte string at '<eb><8d><b8>留<81> <ec>궗<ec>뾽<ec>꽦 <ec>쁺<ed>뼢<ec>슂<ec>씤 <e2>€섎<b3>€<eb>룞媛믠€<99> <ec>꽕<ec>젙 v1.1"),'
Failed to lint file 'server.R'
The linter failed with message:

invalid multibyte string at '<eb><8d><b8>留<81> <ed>썑 <ec>꽭<eb><8c>€<ec>닔 利앷<b0>€", "2. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>€: 85m2 誘몃쭔","3. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>€: 85m2 <ec>씠<ec>긽","4. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 <ec>슜<ec>쟻瑜<a0> <ec>궛異쒓퀎<ec>닔", "5. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏€<ed>븯二쇱감 1<eb><8c>€<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏€<ed>븯二쇱감<ec>옣 1痢<b5> <ec>씠<ed>븯", "6. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏€<ed>븯二쇱감 1<eb><8c>€<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏€<ed>븯二쇱감<ec>옣 2痢<b5> <ec>씠<ec>긽", "7. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 280% <ec>씠<ec>긽", "8. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% <ec>씠<ec>긽 280% 誘몃쭔", "9. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% 誘몃쭔", "10. [<ec>궗<ec>뾽異붿쭊鍮<84>] <ed>룊<eb>떦 媛곸쥌 <ec>궗
Failed to lint file 'ui.R'
The linter failed with message:

invalid multibyte string at '<eb><8d><b8>留<81> <ec>궗<ec>뾽<ec>꽦 <ec>쁺<ed>뼢<ec>슂<ec>씤 <e2>€섎<b3>€<eb>룞媛믠€<99> <ec>꽕<ec>젙 v1.1"),'

and when I try to change the encoding to UTF-8 the application no more run on my pc with the following error:

options(encoding = "UTF-8")
> runApp()

Listening on http://127.0.0.1:3889
Warning in writeLines(text, ..., useBytes = TRUE) :
  invalid char string in output conversion
Warning in readLines(textConn, encoding = "UTF-8") :
  incomplete final line found on ''

when I try to deploy after using options(encoding = "UTF-8"), it shows me this error:

Failed to lint file 'server.R'
The linter failed with message:

input string 518 is invalid UTF-8
Failed to lint file 'ui.R'
The linter failed with message:

input string 71 is invalid UTF-8
Failed to lint file 'server.R'
The linter failed with message:

input string 518 is invalid UTF-8
Failed to lint file 'ui.R'
The linter failed with message:

input string 71 is invalid UTF-8
Failed to lint file 'server.R'
The linter failed with message:

input string 518 is invalid UTF-8
Failed to lint file 'ui.R'
The linter failed with message:

input string 71 is invalid UTF-8

any help or suggestions will be appreciated

best regards
ahmed ali

I managed to deploy the app with korean alphabets last week
https://ahmedshingaly.shinyapps.io/AppKo/
but after adding some more lines, I no more can deploy, I dont know why its throwing the error that korean alphabets cannot be encoded with UTF-8

thanks in advance

Dear All,
I have an app ui.R, server.R both reopened with UTF-8. it contains some titles in korean alphabets for example
titlePanel(title = "리모델링 v1.1")

the application run fine when

> getOption("encoding")
[1] "native.enc"

but cannot deploy it shoes this error

Failed to lint file 'server.R'
The linter failed with message:

invalid multibyte string at '<eb><8d><b8>留<81> <ed>썑 <ec>꽭<eb><8c>�<ec>닔 利앷<b0>�", "2. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>�: 85m2 誘몃쭔","3. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>�: 85m2 <ec>씠<ec>긽","4. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 <ec>슜<ec>쟻瑜<a0> <ec>궛異쒓퀎<ec>닔", "5. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏�<ed>븯二쇱감 1<eb><8c>�<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏�<ed>븯二쇱감<ec>옣 1痢<b5> <ec>씠<ed>븯", "6. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏�<ed>븯二쇱감 1<eb><8c>�<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏�<ed>븯二쇱감<ec>옣 2痢<b5> <ec>씠<ec>긽", "7. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 280% <ec>씠<ec>긽", "8. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% <ec>씠<ec>긽 280% 誘몃쭔", "9. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% 誘몃쭔", "10. [<ec>궗<ec>뾽異붿쭊鍮<84>] <ed>룊<eb>떦 媛곸쥌 <ec>궗
Failed to lint file 'ui.R'
The linter failed with message:

invalid multibyte string at '<eb><8d><b8>留<81> <ec>궗<ec>뾽<ec>꽦 <ec>쁺<ed>뼢<ec>슂<ec>씤 <e2>�섎<b3>�<eb>룞媛믠�<99> <ec>꽕<ec>젙 v1.1"),'
Failed to lint file 'server.R'
The linter failed with message:

invalid multibyte string at '<eb><8d><b8>留<81> <ed>썑 <ec>꽭<eb><8c>�<ec>닔 利앷<b0>�", "2. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>�: 85m2 誘몃쭔","3. [踰뺢퇋] 由щえ<eb>뜽留<81> <ed>썑 <ec>쟾<ec>슜硫댁쟻 利앷<b0>�: 85m2 <ec>씠<ec>긽","4. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 <ec>슜<ec>쟻瑜<a0> <ec>궛異쒓퀎<ec>닔", "5. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏�<ed>븯二쇱감 1<eb><8c>�<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏�<ed>븯二쇱감<ec>옣 1痢<b5> <ec>씠<ed>븯", "6. [蹂댁젙怨꾩닔] 由щえ<eb>뜽留<81> <ed>썑 吏�<ed>븯二쇱감 1<eb><8c>�<eb>떦 硫댁쟻 <ec>궛異쒓퀎<ec>닔: 吏�<ed>븯二쇱감<ec>옣 2痢<b5> <ec>씠<ec>긽", "7. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 280% <ec>씠<ec>긽", "8. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% <ec>씠<ec>긽 280% 誘몃쭔", "9. [怨듭궗鍮<84>] <ed>룊<eb>떦 <eb>룄湲됯났<ec>궗鍮<84>: <ec>슜<ec>쟻瑜<a0> 250% 誘몃쭔", "10. [<ec>궗<ec>뾽異붿쭊鍮<84>] <ed>룊<eb>떦 媛곸쥌 <ec>궗
Failed to lint file 'ui.R'

if I use
options(encoding = "UTF-8")
I no more can run the app in my local pc, it shows the following error

> runApp()

Listening on http://127.0.0.1:3717
Warning in writeLines(text, ..., useBytes = TRUE) :
  invalid char string in output conversion
Warning in readLines(textConn, encoding = "UTF-8") :
  incomplete final line found on ''

any help will be appreciated
thank you in advance

here is my session information

> session_info()
- Session info ----------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.6.1 (2019-07-05)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  Korean_Korea.949            
 ctype    Korean_Korea.949            
 tz       Asia/Seoul                  
 date     2019-11-07                  

- Packages --------------------------------------------------------------------------------------------------------------------------------------------------------------
 package        * version    date       lib source                        
 askpass          1.1        2019-01-13 [1] CRAN (R 3.6.1)                
 assertthat       0.2.1      2019-03-21 [1] CRAN (R 3.6.1)                
 backports        1.1.5      2019-10-02 [1] CRAN (R 3.6.1)                
 callr            3.3.2      2019-09-22 [1] CRAN (R 3.6.1)                
 cellranger       1.1.0      2016-07-27 [1] CRAN (R 3.6.1)                
 class            7.3-15     2019-01-01 [2] CRAN (R 3.6.1)                
 classInt         0.4-2      2019-10-17 [1] CRAN (R 3.6.1)                
 cli              1.1.0      2019-03-19 [1] CRAN (R 3.6.1)                
 colorspace       1.4-1      2019-03-18 [1] CRAN (R 3.6.1)                
 crayon           1.3.4      2017-09-16 [2] CRAN (R 3.6.1)                
 crosstalk        1.0.0      2016-12-21 [1] CRAN (R 3.6.1)                
 curl             4.2        2019-09-24 [1] CRAN (R 3.6.1)                
 data.table       1.12.6     2019-10-18 [1] CRAN (R 3.6.1)                
 DBI              1.0.0      2018-05-02 [1] CRAN (R 3.6.1)                
 desc             1.2.0      2018-05-01 [1] CRAN (R 3.6.1)                
 devtools       * 2.2.1      2019-09-24 [1] CRAN (R 3.6.1)                
 digest           0.6.20     2019-07-04 [2] CRAN (R 3.6.1)                
 dplyr            0.8.3      2019-07-04 [1] CRAN (R 3.6.1)                
 DT             * 0.9        2019-09-17 [1] CRAN (R 3.6.1)                
 e1071            1.7-2      2019-06-05 [1] CRAN (R 3.6.1)                
 ellipsis         0.3.0      2019-09-20 [1] CRAN (R 3.6.1)                
 evaluate         0.14       2019-05-28 [1] CRAN (R 3.6.1)                
 fastmap          1.0.1      2019-10-08 [1] CRAN (R 3.6.1)                
 foreign          0.8-72     2019-08-02 [2] CRAN (R 3.6.1)                
 fs               1.3.1      2019-05-06 [1] CRAN (R 3.6.1)                
 geojson        * 0.3.2      2019-01-31 [1] CRAN (R 3.6.1)                
 geojsonio      * 0.8.0      2019-10-29 [1] CRAN (R 3.6.1)                
 geojsonR       * 1.0.7      2019-08-07 [1] CRAN (R 3.6.1)                
 ggplot2          3.2.1      2019-08-10 [1] CRAN (R 3.6.1)                
 glue             1.3.1      2019-03-12 [1] CRAN (R 3.6.1)                
 gtable           0.3.0      2019-03-25 [1] CRAN (R 3.6.1)                
 htmltools      * 0.4.0      2019-10-04 [1] CRAN (R 3.6.1)                
 htmlwidgets    * 1.5.1      2019-10-08 [1] CRAN (R 3.6.1)                
 httpuv           1.5.2      2019-09-11 [1] CRAN (R 3.6.1)                
 httr             1.4.1      2019-08-05 [1] CRAN (R 3.6.1)                
 jqr              1.1.0      2018-10-22 [1] CRAN (R 3.6.1)                
 jsonlite         1.6        2018-12-07 [2] CRAN (R 3.6.1)                
 KernSmooth       2.23-15    2015-06-29 [2] CRAN (R 3.6.1)                
 knitr            1.25       2019-09-18 [1] CRAN (R 3.6.1)                
 later            1.0.0      2019-10-04 [1] CRAN (R 3.6.1)                
 lattice          0.20-38    2018-11-04 [2] CRAN (R 3.6.1)                
 lazyeval         0.2.2      2019-03-15 [1] CRAN (R 3.6.1)                
 leaflet        * 2.0.2      2018-08-27 [1] CRAN (R 3.6.1)                
 magrittr         1.5        2014-11-22 [2] CRAN (R 3.6.1)                
 mapproj          1.2.6      2018-03-29 [1] CRAN (R 3.6.1)                
 maps           * 3.3.0      2018-04-03 [1] CRAN (R 3.6.1)                
 maptools         0.9-8      2019-10-05 [1] CRAN (R 3.6.1)                
 memoise          1.1.0      2017-04-21 [1] CRAN (R 3.6.1)                
 mime             0.7        2019-06-11 [2] CRAN (R 3.6.0)                
 munsell          0.5.0      2018-06-12 [1] CRAN (R 3.6.1)                
 openssl          1.4.1      2019-07-18 [1] CRAN (R 3.6.1)                
 openxlsx       * 4.1.2      2019-10-29 [1] CRAN (R 3.6.1)                
 pillar           1.4.2      2019-06-29 [1] CRAN (R 3.6.1)                
 pkgbuild         1.0.6      2019-10-09 [1] CRAN (R 3.6.1)                
 pkgconfig        2.0.3      2019-09-22 [1] CRAN (R 3.6.1)                
 pkgload          1.0.2      2018-10-29 [1] CRAN (R 3.6.1)                
 plyr             1.8.4      2016-06-08 [1] CRAN (R 3.6.1)                
 prettyunits      1.0.2      2015-07-13 [1] CRAN (R 3.6.1)                
 processx         3.4.1      2019-07-18 [1] CRAN (R 3.6.1)                
 promises         1.1.0      2019-10-04 [1] CRAN (R 3.6.1)                
 ps               1.3.0      2018-12-21 [1] CRAN (R 3.6.1)                
 purrr            0.3.3      2019-10-18 [1] CRAN (R 3.6.1)                
 quantmod       * 0.4-15     2019-06-17 [1] CRAN (R 3.6.1)                
 R6               2.4.0      2019-02-14 [2] CRAN (R 3.6.1)                
 rbison         * 0.8.0      2019-05-03 [1] CRAN (R 3.6.1)                
 Rcpp             1.0.2      2019-07-25 [2] CRAN (R 3.6.1)                
 rdrop2         * 0.8.1      2017-09-29 [1] CRAN (R 3.6.1)                
 readxl         * 1.3.1      2019-03-13 [1] CRAN (R 3.6.1)                
 remotes          2.1.0      2019-06-24 [1] CRAN (R 3.6.1)                
 reprex         * 0.3.0      2019-05-16 [1] CRAN (R 3.6.1)                
 rgdal          * 1.4-7      2019-10-28 [1] CRAN (R 3.6.1)                
 rgeos            0.5-2      2019-10-03 [1] CRAN (R 3.6.1)                
 rhandsontable  * 0.3.7      2018-11-20 [1] CRAN (R 3.6.1)                
 rlang          * 0.4.1      2019-10-24 [1] CRAN (R 3.6.1)                
 rmarkdown      * 1.16       2019-10-01 [1] CRAN (R 3.6.1)                
 rprojroot        1.3-2      2018-01-03 [1] CRAN (R 3.6.1)                
 rsconnect      * 0.8.15     2019-07-22 [1] CRAN (R 3.6.1)                
 rstudioapi       0.10       2019-03-19 [1] CRAN (R 3.6.1)                
 scales         * 1.0.0      2018-08-09 [1] CRAN (R 3.6.1)                
 sessioninfo      1.1.1      2018-11-05 [1] CRAN (R 3.6.1)                
 sf               0.8-0      2019-09-17 [1] CRAN (R 3.6.1)                
 shiny          * 1.4.0.9000 2019-11-05 [1] Github (rstudio/shiny@32f93a2)
 shiny.i18n     * 0.1.0      2018-09-13 [1] CRAN (R 3.6.1)                
 shinydashboard * 0.7.1      2018-10-17 [1] CRAN (R 3.6.1)                
 shinyWidgets   * 0.4.9      2019-09-10 [1] CRAN (R 3.6.1)                
 sp             * 1.3-1      2018-06-05 [1] CRAN (R 3.6.1)                
 spData         * 0.3.2      2019-09-19 [1] CRAN (R 3.6.1)                
 testthat         2.3.0      2019-11-05 [1] CRAN (R 3.6.1)                
 tibble           2.1.3      2019-06-06 [1] CRAN (R 3.6.1)                
 tidyselect       0.2.5      2018-10-11 [1] CRAN (R 3.6.1)                
 tidyxl         * 1.0.4      2019-01-02 [1] CRAN (R 3.6.1)                
 TTR            * 0.23-5     2019-09-23 [1] CRAN (R 3.6.1)                
 units            0.6-5      2019-10-08 [1] CRAN (R 3.6.1)                
 usethis        * 1.5.1      2019-07-04 [1] CRAN (R 3.6.1)                
 V8               2.3        2019-07-02 [1] CRAN (R 3.6.1)                
 withr            2.1.2      2018-03-15 [1] CRAN (R 3.6.1)                
 xfun             0.10       2019-10-01 [1] CRAN (R 3.6.1)                
 xtable           1.8-4      2019-04-21 [2] CRAN (R 3.6.1)                
 xts            * 0.11-2     2018-11-05 [1] CRAN (R 3.6.1)                
 yaml             2.2.0      2018-07-25 [1] CRAN (R 3.6.0)                
 zip              2.0.4      2019-09-01 [1] CRAN (R 3.6.1)                
 zoo            * 1.8-6      2019-05-28 [1] CRAN (R 3.6.1)                

[1] C:/Users/Contil dell/Documents/R/win-library/3.6
[2] C:/Program Files/R/R-3.6.1/library

here is my ui.R

library(shinydashboard)
library(shiny)
library(shiny.i18n)
library(shinyWidgets)

library(DT)
library(scales)
library(leaflet)
library(spData)
#library(dplyr)
library(sp)
library(maps)
library(rsconnect)
library(htmltools)
library(htmlwidgets)
library(rgdal)
library(geojson)
library(geojsonio)
library(geojsonR)
library(rbison)
library(devtools)
#library(raster)
library(readxl)
library(quantmod)
library(rmarkdown)
library(tidyxl)
#library(tidyverse)
library(rlang)
library(rdrop2)
library(zoo)
library(devtools)
library(quantmod)
#library(xts)
library(reprex)
library(openxlsx)
library(rhandsontable) 

Sys.setlocale("LC_ALL", "korean")
#Sys.setlocale("LC_CTYPE", "ko_KR.UTF-8")
#options(encoding = "UTF-8")

###try these codes if deploy failed 
#tmp.enc <- options()$encoding
#options(encoding = "UTF-8")
#deployApp()
#options(encoding = tmp.enc)

#city <- read_delim("city.txt", "\t", escape_double = FALSE, trim_ws = TRUE)
#city<- read.csv("city.csv", na = "-", fileEncoding = "UTF-8", encoding = "UTF-8", as.is = T)

#excel_helpers <- source("helpers/format_excel.R", local = TRUE)$value



fields<- c("Q0", "Q1", "Q2", "Q3", "Q4", "Q5", "Q6")


shinyUI <- fluidPage(
    titlePanel(title = "리모델링 사업성 영향요인 ‘변동값’ 설정 v1.1"),
    helpText("리모델링 사업의 진행 시 사업성에 영향이 큰 변동사항을 입주민들이 직접 선택하여 의사를 반영할 수 있도록 하였음. 이로 인해 입주민들은 사업성이 미흡하거나 분담금이 높은 단지에 대한 대책을 마련하고 비교해 볼 수 있음"),
    sidebarLayout(position = "left",
                  sidebarPanel("setting of variable data", 
                               #selectInput("dataset", "choose district", as.list(city$cityDistrict)),
                               
                               ###choose district 
                               h4("사업성 분석 대상 선택"),
                               
                               helpText("리모델링 사업의 사업성 분석 대상을 선택하기 위한 것으로, Total을 선택할 경우 성남시 분당구의 전체 사업성을 확인할 수 있으며, 단지를 선택할 경우 자세한 리모델링 전후비교 분석을 확인할 수 있음"),
                               selectInput ("Q0",label = NULL, choices = c("Yang-gi 2 (Sone-Dong)", "Yang-gi 1 kim-ho (Sone-Dong)", "borin-sinsong (Sone-Dong)", "kachi_village1", "Jugong 2 Park", "kachi_village Sonkyong", "Cheongsol Public Officials(Kumgok-dong)", "Cheongsol village gesokol(kimkok-dong)", "Cheongsol village Dong Ah", "BekHyon-dong beonhan village", "bekHyon 5-dong negihborhood", "BekHyon 2-dong neighborhood")),
                               
                               ###Q1 
                               h4("1. 리모델링 후 세대당 지하주차장 주차대수"),
                               
                               helpText("리모델링 후의 지하주차장 면적을 산정하기 위한 것으로, 세대당 주차대수가 낮을수록 총 사업비의 절감이 가능함(Default: 1.2대)"),
                               
                               numericInput("Q1", label = NULL, value= 1.2, min = 0, max = 1, step = 0.1),
                               
                               ###Q2
                               h4("2. 리모델링 후 주민공동시설 면적 수준"),
                               
                               helpText("리모델링 후 주민공동시설의 면적은 용적률에 포함이 되지 않으므로 자유롭게 산정할 수 있으나, 총 사업비에 영향을 주므로 최소(법적 최소기준), 평균(최소면적x2), 최대(최소면적x3)로 나누어 산출이 가능하도록 하였음.(Default: Average)"),
                               
                               selectInput ("Q2", label = NULL, choices = c("minimum", "average", "maximum"), selected = "average"),
                               
                               ###Q3
                               h4("3. 리모델링 후 증가된 전용면적 대비 신규증가세대의 전용면적 비율"),
                               
                               helpText("리모델링 후 증가된 전용면적에 대비하여 신규증가세대의 전용면적의 비율을 산출하는 것으로, 이 비율이 높을수록 총 신규세대의 분양면적이 커져 총 사업비가 절감되는 효과가 있음.(Default: 50%)"),
                               
                               numericInput("Q3", label = NULL , value = 0.5,min = 0, max = 1, step = 0.1),
                               
                               ###Q4
                               h4("4. 기존 아파트 평당 가격 대비 리모델링 후 평당 가격"),
                               
                               helpText("기존 아파트의 평당 가격 대비 리모델링 후 평당 가격을 예측하기 위한 값으로, 전문가의 자문 및 사례조사를 통해 Default 값을 산정하였음. 하지만 미래의 주택가격에 대한 예측치를 산정하는 것은 다양한 영향요인으로 인해 불확실 하므로, 111%~113%와 같이 범위 값으로 산출하는 것을 고려할 필요가 있음.(Default: 112%)"),
                               numericInput("Q4", label = NULL,  value = 1.12,min = 0, max = 1, step = 0.01),
                               
                               ###Q5 
                               h4("5. 전세자금 대출 한도(max:40%)"),
                               
                               helpText("리모델링 사업시 조합원 세대의 아파트를 담보로 대출 받을 수 있는 한도로, 본 사업성지도의 대상인 성남시 분당구는 투기과열지구로 지정되어 LTV 40%로 제한하였음.(Default: 40%)"),
                               numericInput("Q5", label = NULL, value = 0.4,min = 0, max = 1, step = 0.1),
                               
                               ###Q6
                               h4("6. 기존 세대수 대비 매도청구세대 비율"),
                               
                               helpText("리모델링 사업에 참여하지 않는 매도청구세대의 비율로써, 전문가의 자문을 통해 Default값을 선정하였으나, 리모델링 사업을 추진 중인 단지의 경우 매도청구세대의 비율을 직접 입력가능하게 하였음. (Default: 3%)"),
                               numericInput("Q6", label = NULL,  value = 0.03,min = 0, max = 1, step = 0.1),
                               
                               
                               submitButton("submit"), 
                               
                               
                               h4("리모델링 사업성 영향요인 ‘고정값’ 확인"),
                               
                               helpText("리모델링 사업의 진행 시 단기간에 변화하지 않는 영향요인으로 고정값을 적용하였으나, 시간의 경과로 인해 변경되거나 각종 정책 수립 시 항목 값에 따른 사업성을 분석할 수 있도록 변경이 가능하게 하였음"),
                               
                               
                               tableOutput("QQ")),
                  
                  
                  
                  
                  
                  
                  
                  mainPanel("analysis",
                            leafletOutput("map"),
                            textOutput("text1"),
                            tableOutput("OT0"),
                            #plotOutput("legend"),
                            textOutput("T1title"),
                            tableOutput("OT1"),
                            textOutput("T2title"),
                            tableOutput("OT2"),
                            tableOutput("T_All"),
                            tableOutput("table"),
                            #downloadButton("downloadData", "Download"),
                            downloadButton(                                        ###this is a testing download buttom 
                                "generate_excel_report",
                                "Create Excel Report",
                                icon = icon("file-excel"),
                                style = "width: 100%"
                            )
                            
                  )
    )
    
)
> rsconnect::appDependencies()
                 package     version source
1                     BH    1.69.0-1   CRAN
2                    DBI       1.0.0   CRAN
3                     DT         0.9   CRAN
4             KernSmooth     2.23-15   CRAN
5                   MASS    7.3-51.4   CRAN
6                 Matrix      1.2-17   CRAN
7                     R6       2.4.0   CRAN
8           RColorBrewer       1.1-2   CRAN
9                   Rcpp       1.0.2   CRAN
10         RcppArmadillo 0.9.800.1.0   CRAN
11                   TTR      0.23-5   CRAN
12                    V8         2.3   CRAN
13               askpass         1.1   CRAN
14             assertive       0.3-5   CRAN
15        assertive.base       0.0-7   CRAN
16        assertive.code       0.0-3   CRAN
17        assertive.data       0.0-3   CRAN
18     assertive.data.uk       0.0-2   CRAN
19     assertive.data.us       0.0-2   CRAN
20   assertive.datetimes       0.0-2   CRAN
21       assertive.files       0.0-2   CRAN
22    assertive.matrices       0.0-2   CRAN
23      assertive.models       0.0-2   CRAN
24     assertive.numbers       0.0-2   CRAN
25  assertive.properties       0.0-4   CRAN
26  assertive.reflection       0.0-4   CRAN
27        assertive.sets       0.0-3   CRAN
28     assertive.strings       0.0-3   CRAN
29       assertive.types       0.0-3   CRAN
30            assertthat       0.2.1   CRAN
31             backports       1.1.5   CRAN
32             base64enc       0.1-3   CRAN
33                  brew       1.0-6   CRAN
34                 callr       3.3.2   CRAN
35            cellranger       1.1.0   CRAN
36                 class      7.3-15   CRAN
37              classInt       0.4-2   CRAN
38                   cli       1.1.0   CRAN
39                 clipr       0.7.0   CRAN
40            clisymbols       1.2.0   CRAN
41             codetools      0.2-16   CRAN
42            colorspace       1.4-1   CRAN
43            commonmark         1.7   CRAN
44                  covr       3.3.2   CRAN
45                crayon       1.3.4   CRAN
46             crosstalk       1.0.0   CRAN
47                  crul       0.9.0   CRAN
48                  curl         4.2   CRAN
49            data.table      1.12.6   CRAN
50                  desc       1.2.0   CRAN
51              devtools       2.2.1   CRAN
52                digest      0.6.20   CRAN
53                 dplyr       0.8.3   CRAN
54                 e1071       1.7-2   CRAN
55              ellipsis       0.3.0   CRAN
56              evaluate        0.14   CRAN
57                 fansi       0.4.0   CRAN
58               fastmap       1.0.1   CRAN
59               foreign      0.8-72   CRAN
60                    fs       1.3.1   CRAN
61               geojson       0.3.2   CRAN
62              geojsonR       1.0.7   CRAN
63             geojsonio       0.8.0   CRAN
64               ggplot2       3.2.1   CRAN
65                    gh       1.0.1   CRAN
66                 git2r      0.26.1   CRAN
67                  glue       1.3.1   CRAN
68             gridExtra         2.3   CRAN
69                gtable       0.3.0   CRAN
70                 highr         0.8   CRAN
71                   hms       0.5.2   CRAN
72             htmltools       0.4.0   CRAN
73           htmlwidgets       1.5.1   CRAN
74              httpcode       0.2.0   CRAN
75                httpuv       1.5.2   CRAN
76                  httr       1.4.1   CRAN
77                   ini       0.3.1   CRAN
78                   jqr       1.1.0   CRAN
79              jsonlite         1.6   CRAN
80                 knitr        1.25   CRAN
81              labeling         0.3   CRAN
82                 later       1.0.0   CRAN
83               lattice     0.20-38   CRAN
84              lazyeval       0.2.2   CRAN
85               leaflet       2.0.2   CRAN
86              magrittr         1.5   CRAN
87               mapproj       1.2.6   CRAN
88                  maps       3.3.0   CRAN
89              maptools       0.9-8   CRAN
90              markdown         1.1   CRAN
91               memoise       1.1.0   CRAN
92                  mgcv      1.8-28   CRAN
93                  mime         0.7   CRAN
94               munsell       0.5.0   CRAN
95                  nlme     3.1-141   CRAN
96               openssl       1.4.1   CRAN
97              openxlsx       4.1.2   CRAN
98               packrat       0.5.0   CRAN
99                pillar       1.4.2   CRAN
100                piton       0.1.1   CRAN
101             pkgbuild       1.0.6   CRAN
102            pkgconfig       2.0.3   CRAN
103              pkgload       1.0.2   CRAN
104                plogr       0.2.0   CRAN
105                 plyr       1.8.4   CRAN
106                  png       0.1-7   CRAN
107               praise       1.0.0   CRAN
108          prettyunits       1.0.2   CRAN
109             processx       3.4.1   CRAN
110             progress       1.2.2   CRAN
111             promises       1.1.0   CRAN
112            protolite         2.0   CRAN
113                   ps       1.3.0   CRAN
114                purrr       0.3.3   CRAN
115             quantmod      0.4-15   CRAN
116               raster       3.0-7   CRAN
117               rbison       0.8.0   CRAN
118            rcmdcheck       1.3.3   CRAN
119               rdrop2       0.8.1   CRAN
120                readr       1.3.1   CRAN
121               readxl       1.3.1   CRAN
122              rematch       1.0.1   CRAN
123              remotes       2.1.0   CRAN
124               reprex       0.3.0   CRAN
125             reshape2       1.4.3   CRAN
126                  rex       1.1.2   CRAN
127                rgdal       1.4-7   CRAN
128                rgeos       0.5-2   CRAN
129        rhandsontable       0.3.7   CRAN
130                rlang       0.4.1   CRAN
131            rmarkdown        1.16   CRAN
132             roxygen2       6.1.1   CRAN
133            rprojroot       1.3-2   CRAN
134            rsconnect      0.8.15   CRAN
135           rstudioapi        0.10   CRAN
136            rversions       2.0.0   CRAN
137               scales       1.0.0   CRAN
138          sessioninfo       1.1.1   CRAN
139                   sf       0.8-0   CRAN
140                shiny  1.4.0.9000 github
141           shiny.i18n       0.1.0   CRAN
142         shinyWidgets       0.4.9   CRAN
143       shinydashboard       0.7.1   CRAN
144          sourcetools       0.1.7   CRAN
145                   sp       1.3-1   CRAN
146               spData       0.3.2   CRAN
147              stringi       1.4.3   CRAN
148              stringr       1.4.0   CRAN
149                  sys         3.3   CRAN
150             testthat       2.3.0   CRAN
151               tibble       2.1.3   CRAN
152           tidyselect       0.2.5   CRAN
153               tidyxl       1.0.4   CRAN
154              tinytex        0.17   CRAN
155            triebeard       0.3.0   CRAN
156                units       0.6-5   CRAN
157             urltools       1.7.3   CRAN
158              usethis       1.5.1   CRAN
159                 utf8       1.1.4   CRAN
160                vctrs       0.2.0   CRAN
161              viridis       0.5.1   CRAN
162          viridisLite       0.3.0   CRAN
163              whisker         0.4   CRAN
164                withr       2.1.2   CRAN
165                 xfun        0.10   CRAN
166                 xml2       1.2.2   CRAN
167                xopen       1.0.0   CRAN
168               xtable       1.8-4   CRAN
169                  xts      0.11-2   CRAN
170                 yaml       2.2.0   CRAN
171              zeallot       0.1.0   CRAN
172                  zip       2.0.4   CRAN
173                  zoo       1.8-6   CRAN
Warning message:
In readLines(certificateFile, warn = FALSE) :
  invalid input found on input connection 'C:/Users/Contil dell/Documents/R/win-library/3.6/rsconnect/cert/cacert.pem'

How are you deploying you app ?

rsconnect :package: used for deployment does some lint check by default. This seems to be the cause. Try deploying using deployApp and setting lint = FALSE as argument. see the help file.

The issue seems to be with lintr and encoding.

1 Like

Dear Christopher
I tired your method it throw back this error:

deployApp(lint = FALSE)
Preparing to deploy application...DONE
Uploading bundle for application: 1449892...DONE
Deploying bundle: 2577723 for application: 1449892 ...
Waiting for task: 666059363
  building: Building image: 2795192
  building: Installing packages
  building: Installing files
  building: Pushing image: 2795192
  deploying: Starting instances
  success: Stopping old instances
Application successfully deployed to https://ahmedshingaly.shinyapps.io/appkonov9/
Warning messages:
1: In fileDependencies.R(file) :
  Failed to parse C:/Users/CAU/AppData/Local/Temp/Rtmpgzlq8b/filed60a6e3a3a/server.R ; dependencies in this file will not be discovered.
2: In fileDependencies.R(file) :
  Failed to parse C:/Users/CAU/AppData/Local/Temp/Rtmpgzlq8b/filed60a6e3a3a/ui.R ; dependencies in this file will not be discovered.
>

any suggestions

This is now an error with rsconnect trying to guess dependencies.
I encountered this in french too where there was accentuated characters in the code (not in the comment). Do you have this kind of files ?
Also are your file in UTF8 ?

1 Like

here is my ui.R

library(shinydashboard)
library(shiny)
library(shiny.i18n)
library(shinyWidgets)

library(DT)
library(scales)
library(leaflet)
library(spData)
#library(dplyr)
library(sp)
library(maps)
library(rsconnect)
library(htmltools)
library(htmlwidgets)
#library(rgdal)
#library(geojson)
#library(geojsonio)
#library(geojsonR)
#library(rbison)
#library(devtools)
#library(raster)
#library(readxl)
#library(quantmod)
#library(rmarkdown)
#library(tidyxl)
#library(tidyverse)
#library(rlang)
#library(rdrop2)
library(zoo)
library(devtools)
library(quantmod)
#library(xts)
library(reprex)
library(openxlsx)
library(rhandsontable)    #dynamic tables with simulating funcitons 
#library(tidyr)
library(purrr)
library(ggplot2)
library(lexl) # separates Excel formula into tokens of different types, its called "bad pun" on Excel
library(ggraph)
library(unpivotr)
#library(readr) 
library(xts)
library(shinyhelper)
library(graphics)
#library(udpipe)
#library(KoNLP)

#Sys.setlocale("LC_ALL", "korean")
#options(encoding = "UTF-8")

###try these codes if deploy failed 
#tmp.enc <- options()$encoding
#options(encoding = "UTF-8")
#deployApp()
#options(encoding = tmp.enc)

#city <- read_delim("city.txt", "\t", escape_double = FALSE, trim_ws = TRUE)
#city<- read.csv("city.csv", na = "-", fileEncoding = "UTF-8", encoding = "UTF-8", as.is = T)

#excel_helpers <- source("helpers/format_excel.R", local = TRUE)$value



fields<- c("Q0", "Q1", "Q2", "Q3", "Q4", "Q5", "Q6")


shinyUI <- fluidPage(
  titlePanel(title = "리모델링 사업성 영향요인 ‘변동값’ 설정 v1.1"),
  helpText("리모델링 사업의 진행 시 사업성에 영향이 큰 변동사항을 입주민들이 직접 선택하여 의사를 반영할 수 있도록 하였음. 이로 인해 입주민들은 사업성이 미흡하거나 분담금이 높은 단지에 대한 대책을 마련하고 비교해 볼 수 있음"),
  sidebarLayout(position = "left",
                sidebarPanel("setting of variable data", 
                             #selectInput("dataset", "choose district", as.list(city$cityDistrict)),
                             
                             ###choose district 
                             h4("사업성 분석 대상 선택"),
                             
                             helpText("리모델링 사업의 사업성 분석 대상을 선택하기 위한 것으로, Total을 선택할 경우 성남시 분당구의 전체 사업성을 확인할 수 있으며, 단지를 선택할 경우 자세한 리모델링 전후비교 분석을 확인할 수 있음"),
                             selectInput ("Q0",label = NULL, choices = list(
                               구미동= c("A01 까치마을 대우,롯데,선경", 
                                      "A02 까치마을 주공2단지", 
                                      "A03 까치마을 롯데,선경"), 
                                수내동 = c("N01 양지2단지청구", "N02 양지1단지금호", "N03 푸른신성"),
                                금곡동 = c("C01 청솔공무원(금곡동, 청솔마을주공5단지공무원)", 
                                        "C02 청솔마을6단지주공(금곡동, 청솔마을주공6단지)", 
                                        "C03 금곡동, 청솔마을동아" ),                                          
                                백현동 = c ("D01 백현동, 백현마을9단지e편한세상", 
                                         "D02 백현5단지휴먼시아(백현동, 백현마을주공5단지)", 
                                         "D03 백현동, 백현마을2단지" ),                                           
                                분당동 =c(
                                  "E01 분당동, 샛별마을라이프",
                                  "E02 분당동, 샛별마을동성",
                                  "E03 분당동, 샛별마을우방"),
                                삼평동 =c("F01 삼평동, 봇들마을1단지판교신미주", 
                                       "F02 삼평동, 봇들마을2단지)(봇들2단지이지더원",
                                       "F03 (삼평동, 봇들마을4단지)(봇들4단지휴먼시아)"
                                ),
                                서현동 = c ( "G01 서현동, 서현포스파크", 
                                          "G02 서현동, 효자촌동아",
                                          "G03 (서현동, 효자촌미래타운)(서현동, 효자촌6단지그린타운)"),
                                야탑동 = c ("H01 야탑동, 목련마을영남", 
                                         "H02 야탑동, 목련마을한일",
                                         "H03 야탑동, 목련마을한신"),
                                운중동 = c ("I01 운중동, 푸르지오하임",
                                         "I02 (운중동, 산운마을13단지) 산운13단지휴먼시아데시앙",
                                         "I03 (운중동, 15단지)(판교금강펜테리움레전드)"),
                                이매동 = c ("J01 이매동, 이매촌삼성", 
                                         "J02 이매동, 이매촌동신9단지",
                                         "J03 이매동, 이매촌진흥"),
                                정자동 = c("K01 정자동, 한솔마을주공4단지",
                                        "K02 정자동, 한솔마을한일",
                                        "K03 정자동, 한솔마을LG2차"),
                                판교동 = c ("L01 (판교동, 원마을10단지) 판교원10단지휴먼시아힐스테이트",
                                         "L02 (판교동,원마을한림풀에버9단지) 판교원9단지한림풀에버",
                                         "L03 (판교동, 판교원마을1단지) 판교원1단지휴먼시아")
                                
                             )),
                             
                             ###Q1 
                             h4("1. 리모델링 후 세대당 지하주차장 주차대수"),
                             
                             helpText("리모델링 후의 지하주차장 면적을 산정하기 위한 것으로, 세대당 주차대수가 낮을수록 총 사업비의 절감이 가능함(Default: 1.2대)"),
                             
                             numericInput("Q1", label = NULL, value= 1.2, min = 0, max = 1, step = 0.1),
                             
                             ###Q2
                             h4("2. 리모델링 후 주민공동시설 면적 수준"),
                             
                             helpText("리모델링 후 주민공동시설의 면적은 용적률에 포함이 되지 않으므로 자유롭게 산정할 수 있으나, 총 사업비에 영향을 주므로 최소(법적 최소기준), 평균(최소면적x2), 최대(최소면적x3)로 나누어 산출이 가능하도록 하였음.(Default: Average)"),
                             
                             selectInput ("Q2", label = NULL, choices = c("minimum", "average", "maximum"), selected = "average"),
                             
                             ###Q3
                             h4("3. 리모델링 후 증가된 전용면적 대비 신규증가세대의 전용면적 비율"),
                             
                             helpText("리모델링 후 증가된 전용면적에 대비하여 신규증가세대의 전용면적의 비율을 산출하는 것으로, 이 비율이 높을수록 총 신규세대의 분양면적이 커져 총 사업비가 절감되는 효과가 있음.(Default: 50%)"),
                             
                             numericInput("Q3", label = NULL , value = 0.5,min = 0, max = 1, step = 0.1),
                             
                             ###Q4
                             h4("4. 기존 아파트 평당 가격 대비 리모델링 후 평당 가격"),
                             
                             helpText("기존 아파트의 평당 가격 대비 리모델링 후 평당 가격을 예측하기 위한 값으로, 전문가의 자문 및 사례조사를 통해 Default 값을 산정하였음. 하지만 미래의 주택가격에 대한 예측치를 산정하는 것은 다양한 영향요인으로 인해 불확실 하므로, 111%~113%와 같이 범위 값으로 산출하는 것을 고려할 필요가 있음.(Default: 112%)"),
                             numericInput("Q4", label = NULL,  value = 1.12,min = 0, max = 1, step = 0.01),
                             
                             ###Q5 
                             h4("5. 전세자금 대출 한도(max:40%)"),
                             
                             helpText("리모델링 사업시 조합원 세대의 아파트를 담보로 대출 받을 수 있는 한도로, 본 사업성지도의 대상인 성남시 분당구는 투기과열지구로 지정되어 LTV 40%로 제한하였음.(Default: 40%)"),
                             numericInput("Q5", label = NULL, value = 0.4,min = 0, max = 1, step = 0.1),
                             
                             ###Q6
                             h4("6. 기존 세대수 대비 매도청구세대 비율"),
                             
                             helpText("리모델링 사업에 참여하지 않는 매도청구세대의 비율로써, 전문가의 자문을 통해 Default값을 선정하였으나, 리모델링 사업을 추진 중인 단지의 경우 매도청구세대의 비율을 직접 입력가능하게 하였음. (Default: 3%)"),
                             numericInput("Q6", label = NULL,  value = 0.03,min = 0, max = 1, step = 0.1),
                             
                             
                             submitButton("submit"), 
                             
                             
                             h4("리모델링 사업성 영향요인 ‘고정값’ 확인"),
                             
                             helpText("리모델링 사업의 진행 시 단기간에 변화하지 않는 영향요인으로 고정값을 적용하였으나, 시간의 경과로 인해 변경되거나 각종 정책 수립 시 항목 값에 따른 사업성을 분석할 수 있도록 변경이 가능하게 하였음"),
                             
                             
                             tableOutput("QQ")),
                
                
                
                
                
                
                
                mainPanel(
                  tabsetPanel(type= "tabs",
                              tabPanel("map", leafletOutput("map")),
                              tabPanel("All",tableOutput("T_All")),
                              tabPanel("neighborhood", textOutput("text1"),
                                       tableOutput("OT0"),
                                       #plotOutput("legend"),
                                       textOutput("T1title"),
                                       tableOutput("OT1"),
                                       textOutput("T2title"),
                                       tableOutput("OT2"),
                                       
                                       tableOutput("table")),
                              #downloadButton("downloadData", "Download"),
                              tabPanel("download", downloadButton(                                        ###this is a testing download buttom 
                                "generate_excel_report",
                                "Create Excel Report",
                                icon = icon("file-excel"),
                                style = "width: 100%"
                              ))
                              
                  )
                )
  ))

so I read your french parsing comments, however I dont exactly know how to parse text could I have many lines in korean alphabets

I managed to deploy the app last week but now its throwing the same error,
I attached my ui.R in the comment above hopping it help you understand where am I doing wrong

thanks in advance
lookinf forward hearing from you soon

trying to deploy shiny app but fails with the following errors

logs:
2019-11-18T01:59:16.091848+00:00 shinyapps[1485304]: Server version: 1.7.8-7
2019-11-18T01:59:16.091890+00:00 shinyapps[1485304]: R version: 3.6.1
2019-11-18T01:59:16.091891+00:00 shinyapps[1485304]: shiny version: 1.4.0
2019-11-18T01:59:16.091850+00:00 shinyapps[1485304]: LANG: en_US.UTF-8
2019-11-18T01:59:16.091892+00:00 shinyapps[1485304]: rmarkdown version: (none)
2019-11-18T01:59:16.091892+00:00 shinyapps[1485304]: knitr version: (none)
2019-11-18T01:59:16.091892+00:00 shinyapps[1485304]: httpuv version: 1.5.2
2019-11-18T01:59:16.091902+00:00 shinyapps[1485304]: jsonlite version: 1.6
2019-11-18T01:59:16.091902+00:00 shinyapps[1485304]: RJSONIO version: (none)
2019-11-18T01:59:16.091910+00:00 shinyapps[1485304]: htmltools version: 0.4.0
2019-11-18T01:59:16.092059+00:00 shinyapps[1485304]: Using pandoc at /opt/connect/ext/pandoc2
2019-11-18T01:59:16.234749+00:00 shinyapps[1485304]: Using jsonlite for JSON processing
2019-11-18T01:59:16.243319+00:00 shinyapps[1485304]:
2019-11-18T01:59:16.243321+00:00 shinyapps[1485304]: Starting R with process ID: '25'
2019-11-18T01:59:16.265469+00:00 shinyapps[1485304]:
2019-11-18T01:59:16.265476+00:00 shinyapps[1485304]: Listening on http://127.0.0.1:44591
2019-11-18T01:59:20.931438+00:00 shinyapps[1485304]: Warning: Error in library: there is no package called ‘shinydashboard’
2019-11-18T01:59:20.979363+00:00 shinyapps[1485304]: 63:
2019-11-18T02:06:07.707127+00:00 shinyapps[1485304]: Server version: 1.7.8-7
2019-11-18T02:06:07.707168+00:00 shinyapps[1485304]: LANG: en_US.UTF-8
2019-11-18T02:06:07.707169+00:00 shinyapps[1485304]: R version: 3.6.1
2019-11-18T02:06:07.707170+00:00 shinyapps[1485304]: shiny version: 1.4.0
2019-11-18T02:06:07.707170+00:00 shinyapps[1485304]: httpuv version: 1.5.2
2019-11-18T02:06:07.707170+00:00 shinyapps[1485304]: rmarkdown version: (none)
2019-11-18T02:06:07.707362+00:00 shinyapps[1485304]: Using pandoc at /opt/connect/ext/pandoc2
2019-11-18T02:06:07.707192+00:00 shinyapps[1485304]: jsonlite version: 1.6
2019-11-18T02:06:07.707202+00:00 shinyapps[1485304]: RJSONIO version: (none)
2019-11-18T02:06:07.707222+00:00 shinyapps[1485304]: htmltools version: 0.4.0
2019-11-18T02:06:07.847149+00:00 shinyapps[1485304]: Using jsonlite for JSON processing
2019-11-18T02:06:07.855946+00:00 shinyapps[1485304]:
2019-11-18T02:06:07.855948+00:00 shinyapps[1485304]: Starting R with process ID: '145'
2019-11-18T02:06:07.878027+00:00 shinyapps[1485304]:
2019-11-18T02:06:07.878028+00:00 shinyapps[1485304]: Listening on http://127.0.0.1:46834
2019-11-18T02:06:07.707191+00:00 shinyapps[1485304]: knitr version: (none)
2019-11-18T02:06:07.982537+00:00 shinyapps[1485304]: Warning: Error in library: there is no package called ‘shinydashboard’
2019-11-18T02:06:08.024048+00:00 shinyapps[1485304]: 63:

  1. consol error:
    Failed to lint file 'server.R'
    The linter failed with message:

input string 4802 is invalid UTF-8
Failed to lint file 'ui.R'
The linter failed with message:

input string 78 is invalid UTF-8
Failed to lint file 'server.R'
The linter failed with message:

input string 4802 is invalid UTF-8
Failed to lint file 'ui.R'
The linter failed with message:

input string 78 is invalid UTF-8
Failed to lint file 'server.R'
The linter failed with message:

input string 4802 is invalid UTF-8
Failed to lint file 'ui.R'
The linter failed with message:

  1. deploy tab error :
    ----- Deployment log started at 2019-11-18 10:58:23 -----
    Deploy command:
    rsconnect::deployApp(appDir = "~/R/appkonov14", appFileManifest = "C:/Users/CAU/AppData/Local/Temp/e360-3e3e-b439-cb07", account = "ahmedshingaly", server = "shinyapps.io", appName = "appkonov17", appTitle = "appkonov17", launch.browser = function(url) { message("Deployment completed: ", url) }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE), logLevel = "verbose")

Session information:
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 14393)

Matrix products: default

locale:
[1] LC_COLLATE=Korean_Korea.949 LC_CTYPE=Korean_Korea.949
[3] LC_MONETARY=Korean_Korea.949 LC_NUMERIC=C
[5] LC_TIME=Korean_Korea.949

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

loaded via a namespace (and not attached):
[1] compiler_3.6.1 rsconnect_0.8.15
Cookies:
[1] "None"
GET /v1/applications/?filter=account_id:285882&filter=name:appkonov17&count=100&offset=0 910ms
POST /v1/applications/ 939ms
----- Bundle upload started at 2019-11-18 10:58:25 -----
[2019-11-18 10:58:25] Inferring App mode and parameters
[2019-11-18 10:58:25] Bundling app dir
[2019-11-18 10:58:25] Generate manifest.json
[2019-11-18 10:58:28] Writing Rmd index if necessary
[2019-11-18 10:58:28] Compressing the bundle
POST /v1/bundles 810ms
[2019-11-18 10:58:29] Starting upload now
PUT /bundles/application-1485304/7b2226f979584793aa25d5c2e9f97e3b.tar.gz?AWSAccessKeyId=ASIA54P7SCTKUZGIT4BC&x-amz-acl=bucket-owner-full-control&Expires=1574045909&content-md5=QfuP7FC8w1ooHUKofCG6WQ%3D%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEG8aCXVzLWVhc3QtMSJGMEQCIGZ0wYFWpASPI2yyfhKY1b2FqLNDGcg8XtHrgg8h60UIAiBNTJl40mLnUkRv8KiuZt8pmh%2FgK6uM3m0OTD9gOFipiCrYAgiY%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDk1NDU1NTU2OTM2NSIMrblFUupXgPtZIdzGKqwCMJVgBSVpILb853bY2wz2BpEG1TykdNJduZlTDwGGW4Q0q2tqxp81VG7fYYEto%2FhRScyn0wgeDKW3jP%2Fn6K%2FaalRaL0sgWbI5H%2BgiO0r83ua1JSpD6DoeKj53mwr6Q%2BSSUReRMmBEe5CQMUJgmVFQ1aCHzFnFLM55mVKVQm%2BW6QgQYa4uIXLpj%2Fi743U0WRu%2BqR4Nb2tkvOGph7B8OfQ3qEMcSMSf0TnPKiP6lgtvHue54KPxhR8fcJu%2F7sLqR%2BVe1TLNnR4R4CrpODQ1iRBA84986eqUM4toTvWiT20bwRShzgCSW1uj0iSZhVd1A5bSjFYr786P2AXEEuGOeaQFDFTHnuwx4miRrl22%2BXMYOgzWoro%2BMlyVDymG4ncHgBwp0DBtQpxuWpyCDSMSMP2gx%2B4FOtECEF6lHJqD1DlJPfZFFfoOcJ5Sqo7kcM0OUUB%2BWp16jm4s6EpB6eOfWVreJH3uuVC9yeqWYtio4RMHUWZQgxri5ydjoNNn8FQF6sA%2FjtM4M%2BLBeZphi6rxmOXDW8tV%2BFj9GHSXTU54DgQ%2BGiOD8OjwrZdnf0X834zzNNtGIvHfqIdtEF42rY0WiPT8eCe15RYnZtdV%2BISTh9cG8Un2A5bsN83nGy0rlSSosqxLiQORGMJIA8YQWzUV9Q5tGggQmoMywdkpj1l3vh1tPPPKAtNjl71O4YrmLdxM%2BmqiBhwSLZwQ5iOKpkp8cWf5CXDuaDA4G%2BdaBfSHPV3pyVOrlIYOaavvXASxQlY7%2FIzcZuk8za1pytDKUWoN6TIx56FR%2F0OhdM3nWMcoUTdgQ%2BmUW3BJWNRCgBoADy7RpjoVpaOjqaJjvl3mZCifbzHXc0c7%2BdsUvw%3D%3D&Signature=i7veRikW92a3TfkbaQJFcnPC%2FjA%3D&content-type=application%2Fx-tar 1519ms
[2019-11-18 10:58:31] Upload complete
POST /v1/bundles/2596450/status 809ms
GET /v1/bundles/2596450 910ms
[2019-11-18 10:58:33] Saving deployment record for appkonov17 -
----- Server deployment started at 2019-11-18 10:58:33 -----
POST /v1/applications/1485304/deploy 1010ms
Waiting for task: 668183042
GET /v1/tasks/668183042 799ms
building: Processing bundle: 2596450
GET /v1/tasks/668183042 839ms
building: Installing packages
GET /v1/tasks/668183042 800ms
GET /v1/tasks/668183042 899ms
GET /v1/tasks/668183042 820ms
GET /v1/tasks/668183042 919ms
GET /v1/tasks/668183042 890ms
GET /v1/tasks/668183042 789ms
GET /v1/tasks/668183042 870ms
GET /v1/tasks/668183042 800ms
GET /v1/tasks/668183042 869ms
building: Installing files
GET /v1/tasks/668183042 900ms
GET /v1/tasks/668183042 780ms
building: Pushing image: 2821891
GET /v1/tasks/668183042 780ms
GET /v1/tasks/668183042 890ms
GET /v1/tasks/668183042 910ms
GET /v1/tasks/668183042 910ms
GET /v1/tasks/668183042 780ms
GET /v1/tasks/668183042 880ms
GET /v1/tasks/668183042 789ms
GET /v1/tasks/668183042 890ms
GET /v1/tasks/668183042 780ms
GET /v1/tasks/668183042 780ms
deploying: Starting instances
GET /v1/tasks/668183042 910ms
terminating: Stopping old instances
GET /v1/tasks/668183042 780ms
----- Deployment log finished at 2019-11-18 10:59:20 -----
Deployment completed: https://ahmedshingaly.shinyapps.io/appkonov17/
����޽���(��):
1: In fileDependencies.R(file) :
Failed to parse C:/Users/CAU/AppData/Local/Temp/Rtmp0SVy5i/file2ee8eb63d64/server.R ; dependencies in this file will not be discovered.
2: In fileDependencies.R(file) :
Failed to parse C:/Users/CAU/AppData/Local/Temp/Rtmp0SVy5i/file2ee8eb63d64/ui.R ; dependencies in this file will not be discovered.

thanks in advance

If rsconnect is not able to determine the dependencies in server.R or ui.R, then when the bundle is deployed to shinyapps.io (or Connect) the R packages will not be installed and you will see errors like:

Concentrate on getting to the bottom of the parsing/lint'ing errors.

1 Like