blogdown :: new_site()无法更改目录setwd(site.dir)

时间:2017-12-05 17:42:42

标签: r blogdown

我想使用blogdown创建一个网站。

我已按照blogdown's book中的blogdown reposalison hillEd Borasky的帖子,按照{{3}}中的说明操作。在每种情况下,我都有同样的错误:

> blogdown::new_site()
trying URL 'https://github.com/yihui/hugo-lithium-theme/archive/master.zip'
downloaded 116 KB

Serving the directory /home/ediman/otest at http://127.0.0.1:4321
To stop the server, run servr::daemon_stop("142992016") or restart your R session
Error in setwd(site.dir) : cannot change working directory

R会话信息是:

> sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
[4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
[7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

loaded via a namespace (and not attached):
[1] Rcpp_0.12.14          rstudioapi_0.7.0-9000 plotly_4.7.1          servr_0.8            
[5] knitr_1.17            bindr_0.1             magrittr_1.5          munsell_0.4.3        
[9] viridisLite_0.2.0     colorspace_1.3-2      R6_2.2.2              rlang_0.1.4.9000     
[13] httr_1.3.1            plyr_1.8.4            dplyr_0.7.4           tools_3.4.3          
[17] grid_3.4.3            data.table_1.10.4-3   gtable_0.2.0          htmltools_0.3.6      
[21] yaml_2.1.15           lazyeval_0.2.1        assertthat_0.2.0      digest_0.6.12        
[25] tibble_1.3.4          bookdown_0.5          bindrcpp_0.2          tidyr_0.7.2          
[29] purrr_0.2.4           ggplot2_2.2.1         htmlwidgets_0.9       glue_1.2.0           
[33] blogdown_0.3          compiler_3.4.3        scales_0.5.0          jsonlite_1.5         
[37] httpuv_1.3.5          pkgconfig_2.0.1  

我可以得到帮助,因为我不知道错误是什么?

由于

0 个答案:

没有答案