- 已编辑
我去掉了代码中所有的中文字符,甚至注释中的也一并去掉了。部署前也运行了options(encoding = "UTF-8")
,但是运行后总是出现:
> warnings()
警告信息:
1: In readLines(certificateFile, warn = FALSE) :
invalid input found on input connection 'E:/R library/rsconnect/cert/cacert.pem'
2: In readLines(certificateFile, warn = FALSE) :
invalid input found on input connection 'E:/R library/rsconnect/cert/cacert.pem'
Warning message:
In readLines(certificateFile, warn = FALSE) :
invalid input found on input connection 'E:/R library/rsconnect/cert/cacert.pem'
而在我运行library(rsconnect)
后没有警告出现了(这行代码在server.R中也有),deploy过程中也没有报错,可是最后打开的网站就顶部写着:
ERROR: An error has occurred. Check your logs or contact the app author for clarification.
除此之外没有别的报错了。请问有一些解决方案或者是提示吗?
> sessioninfo::session_info()
- Session info ------------------------------------------------------------------------------------
setting value
version R version 3.6.0 (2019-04-26)
os Windows 10 x64
system x86_64, mingw32
ui RStudio
language (EN)
collate Chinese (Simplified)_China.936
ctype Chinese (Simplified)_China.936
tz Asia/Taipei
date 2019-05-23
- Packages ----------------------------------------------------------------------------------------
package * version date lib source
ash 1.0-15 2015-09-01 [1] CRAN (R 3.6.0)
askpass 1.1 2019-01-13 [1] CRAN (R 3.6.0)
assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.5.3)
backports 1.1.4 2019-04-10 [1] CRAN (R 3.6.0)
broom 0.5.2 2019-04-07 [1] CRAN (R 3.6.0)
Cairo 1.5-10 2019-03-28 [1] CRAN (R 3.5.3)
callr 3.2.0 2019-03-15 [1] CRAN (R 3.6.0)
cellranger 1.1.0 2016-07-27 [1] CRAN (R 3.6.0)
cli 1.1.0 2019-03-19 [1] CRAN (R 3.5.3)
clipr 0.6.0 2019-04-15 [1] CRAN (R 3.6.0)
codetools 0.2-16 2018-12-24 [2] CRAN (R 3.6.0)
colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.5.3)
cowplot * 0.9.4 2019-01-08 [1] CRAN (R 3.6.0)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.6.0)
crosstalk 1.0.0 2016-12-21 [1] CRAN (R 3.6.0)
data.table 1.12.2 2019-04-07 [1] CRAN (R 3.6.0)
digest 0.6.18 2018-10-10 [1] CRAN (R 3.6.0)
dplyr * 0.8.0.1 2019-02-15 [1] CRAN (R 3.6.0)
DT 0.5 2018-11-05 [1] CRAN (R 3.6.0)
dygraphs * 1.1.1.6 2018-07-11 [1] CRAN (R 3.6.0)
egg * 0.4.2 2018-11-03 [1] CRAN (R 3.6.0)
evaluate 0.13 2019-02-12 [1] CRAN (R 3.6.0)
extrafont 0.17 2014-12-08 [1] CRAN (R 3.6.0)
extrafontdb 1.0 2012-06-11 [1] CRAN (R 3.6.0)
fansi 0.4.0 2018-10-05 [1] CRAN (R 3.6.0)
forcats * 0.4.0 2019-02-17 [1] CRAN (R 3.6.0)
foreach * 1.4.4 2017-12-12 [1] CRAN (R 3.6.0)
fs 1.3.1 2019-05-06 [1] CRAN (R 3.6.0)
GA * 3.2 2019-01-10 [1] CRAN (R 3.6.0)
generics 0.0.2 2018-11-29 [1] CRAN (R 3.6.0)
ggalt * 0.4.0 2017-02-15 [1] CRAN (R 3.6.0)
ggplot2 * 3.1.1 2019-04-07 [1] CRAN (R 3.5.3)
ggpubr * 0.2 2018-11-15 [1] CRAN (R 3.6.0)
glue 1.3.1 2019-03-12 [1] CRAN (R 3.6.0)
gridExtra * 2.3 2017-09-09 [1] CRAN (R 3.6.0)
gtable 0.3.0 2019-03-25 [1] CRAN (R 3.5.3)
haven 2.1.0 2019-02-19 [1] CRAN (R 3.6.0)
hms 0.4.2 2018-03-10 [1] CRAN (R 3.6.0)
htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.6.0)
htmlwidgets 1.3 2018-09-30 [1] CRAN (R 3.6.0)
httpuv 1.5.1 2019-04-05 [1] CRAN (R 3.5.3)
httr 1.4.0 2018-12-11 [1] CRAN (R 3.6.0)
iterators * 1.0.10 2018-07-13 [1] CRAN (R 3.6.0)
janitor * 1.2.0.9000 2019-04-23 [1] Github (sfirke/janitor@b0455e1)
jsonlite 1.6 2018-12-07 [1] CRAN (R 3.6.0)
KernSmooth 2.23-15 2015-06-29 [2] CRAN (R 3.6.0)
knitr 1.22 2019-03-08 [1] CRAN (R 3.6.0)
labeling 0.3 2014-08-23 [1] CRAN (R 3.6.0)
later 0.8.0 2019-02-11 [1] CRAN (R 3.6.0)
lattice 0.20-38 2018-11-04 [2] CRAN (R 3.6.0)
lazyeval 0.2.2 2019-03-15 [1] CRAN (R 3.5.3)
lubridate * 1.7.4 2018-04-11 [1] CRAN (R 3.6.0)
magrittr * 1.5 2014-11-22 [1] CRAN (R 3.6.0)
maps 3.3.0 2018-04-03 [1] CRAN (R 3.6.0)
MASS 7.3-51.4 2019-03-31 [2] CRAN (R 3.6.0)
mime 0.6 2018-10-05 [1] CRAN (R 3.6.0)
modelr 0.1.4 2019-02-18 [1] CRAN (R 3.6.0)
multicolor * 0.1.3 2019-04-13 [1] CRAN (R 3.6.0)
munsell 0.5.0 2018-06-12 [1] CRAN (R 3.6.0)
nlme 3.1-139 2019-04-09 [2] CRAN (R 3.6.0)
openssl 1.3 2019-03-22 [1] CRAN (R 3.6.0)
ourbir * 0.1.0 2019-03-20 [1] Github (hoasxyz/ourbir@58587b4)
packrat 0.5.0 2018-11-14 [1] CRAN (R 3.6.0)
pacman * 0.5.1 2019-03-11 [1] CRAN (R 3.6.0)
patchwork * 0.0.1 2019-05-17 [1] Github (thomasp85/patchwork@fd7958b)
pillar 1.4.0 2019-05-11 [1] CRAN (R 3.6.0)
pkgconfig 2.0.2 2018-08-16 [1] CRAN (R 3.6.0)
plotly * 4.9.0 2019-04-30 [1] Github (ropensci/plotly@9b5c4f6)
plyr 1.8.4 2016-06-08 [1] CRAN (R 3.6.0)
praise * 1.0.0 2015-08-11 [1] CRAN (R 3.6.0)
processx 3.3.0 2019-03-10 [1] CRAN (R 3.6.0)
proj4 1.0-8 2012-08-05 [1] CRAN (R 3.6.0)
promises 1.0.1 2018-04-13 [1] CRAN (R 3.6.0)
ps 1.3.0 2018-12-21 [1] CRAN (R 3.6.0)
pso 1.0.3 2012-09-02 [1] CRAN (R 3.6.0)
purrr * 0.3.2 2019-03-15 [1] CRAN (R 3.6.0)
R6 2.4.0 2019-02-14 [1] CRAN (R 3.6.0)
RColorBrewer 1.1-2 2014-12-07 [1] CRAN (R 3.6.0)
Rcpp 1.0.1 2019-03-17 [1] CRAN (R 3.6.0)
readr * 1.3.1 2018-12-21 [1] CRAN (R 3.6.0)
readxl * 1.3.1 2019-03-13 [1] CRAN (R 3.6.0)
reprex 0.2.1 2018-09-16 [1] CRAN (R 3.6.0)
reshape2 * 1.4.3 2017-12-11 [1] CRAN (R 3.6.0)
rlang 0.3.4 2019-04-07 [1] CRAN (R 3.5.3)
rmarkdown 1.12 2019-03-14 [1] CRAN (R 3.6.0)
rsconnect 0.8.13 2019-01-10 [1] CRAN (R 3.6.0)
rstudioapi 0.10 2019-03-19 [1] CRAN (R 3.5.3)
Rttf2pt1 1.3.7 2018-06-29 [1] CRAN (R 3.6.0)
rvest 0.3.3 2019-04-11 [1] CRAN (R 3.6.0)
scales 1.0.0 2018-08-09 [1] CRAN (R 3.6.0)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.0)
shiny * 1.3.2 2019-04-22 [1] CRAN (R 3.6.0)
shinythemes * 1.1.2 2018-11-06 [1] CRAN (R 3.6.0)
stringi 1.4.3 2019-03-12 [1] CRAN (R 3.6.0)
stringr * 1.4.0 2019-02-10 [1] CRAN (R 3.6.0)
tibble * 2.1.1 2019-03-16 [1] CRAN (R 3.6.0)
tidyr * 0.8.3 2019-03-01 [1] CRAN (R 3.6.0)
tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.6.0)
tidyverse * 1.2.1 2017-11-14 [1] CRAN (R 3.6.0)
tsdecomp * 0.2 2017-01-04 [1] CRAN (R 3.6.0)
utf8 1.1.4 2018-05-24 [1] CRAN (R 3.6.0)
vctrs 0.1.0 2018-11-29 [1] CRAN (R 3.6.0)
viridisLite 0.3.0 2018-02-01 [1] CRAN (R 3.6.0)
whisker 0.3-2 2013-04-28 [1] CRAN (R 3.6.0)
withr 2.1.2 2018-03-15 [1] CRAN (R 3.6.0)
xfun 0.6 2019-04-02 [1] CRAN (R 3.5.3)
xml2 1.2.0 2018-01-24 [1] CRAN (R 3.6.0)
xtable 1.8-4 2019-04-21 [1] CRAN (R 3.6.0)
xts 0.11-2 2018-11-05 [1] CRAN (R 3.6.0)
yaml 2.2.0 2018-07-25 [1] CRAN (R 3.6.0)
zeallot 0.1.0 2018-01-28 [1] CRAN (R 3.6.0)
zoo * 1.8-5 2019-03-21 [1] CRAN (R 3.6.0)
[1] E:/R library
[2] E:/R-3.6.0/library