在之前两个方法都可以用的,可是不知道怎么回事,今天就成这样了:
RStudio中:
> options(blogdown.generator.server = TRUE)
> blogdown::serve_site()
Launching the server via the command:
hugo server --bind 127.0.0.1 -p 4321 -D -F -t hugo-theme-even
Error: It took more than 30 seconds to launch the server. There may be something wrong. The process has been killed.If the site needs more time to be built and launched, set options(blogdown.server.timeout) to a larger value.
cmd中,完好运行:
E:\1R\website>hugo server
Building sites …
| EN
+------------------+-----+
Pages | 94
Paginator pages | 6
Non-page files | 0
Static files | 211
Processed images | 0
Aliases | 22
Sitemaps | 1
Cleaned | 0
Total in 353 ms
Watching for changes...
...
请问这是怎么回事呀?!
附上:
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] reprex_0.2.1 bindrcpp_0.2.2 forcats_0.3.0 stringr_1.3.1 dplyr_0.7.8 purrr_0.2.5
[7] readr_1.3.1 tidyr_0.8.2 tibble_2.0.0 ggplot2_3.1.0 tidyverse_1.2.1 multicolor_0.1.1
[13] lubridate_1.7.4 praise_1.0.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 lattice_0.20-38 ps_1.3.0 assertthat_0.2.0 digest_0.6.18 R6_2.3.0
[7] cellranger_1.1.0 plyr_1.8.4 backports_1.1.3 evaluate_0.12 httr_1.4.0 blogdown_0.9
[13] pillar_1.3.1 rlang_0.3.0.1 lazyeval_0.2.1 readxl_1.2.0 rstudioapi_0.8 whisker_0.3-2
[19] callr_3.1.1 rmarkdown_1.11 servr_0.11 htmlwidgets_1.3 munsell_0.5.0 broom_0.5.1
[25] compiler_3.5.2 httpuv_1.4.5.1 modelr_0.1.2 xfun_0.4 pkgconfig_2.0.2 clipr_0.4.1
[31] htmltools_0.3.6 tidyselect_0.2.5 bookdown_0.9 crayon_1.3.4 withr_2.1.2 later_0.7.5
[37] grid_3.5.2 nlme_3.1-137 jsonlite_1.6 gtable_0.2.0 magrittr_1.5 scales_1.0.0
[43] cli_1.0.1 stringi_1.2.4 fs_1.2.6 promises_1.0.1 xml2_1.2.0 generics_0.0.2
[49] tools_3.5.2 glue_1.3.0 hms_0.4.2 processx_3.2.1 yaml_2.2.0 colorspace_1.3-2
[55] rvest_0.3.2 knitr_1.21 bindr_0.1.1 haven_2.0.0