我刚刚更新了R和R软件包,包括blogdown。在此之前,我使用blogdown创建的网站将使用blogdown::serve_site()
或blogdown::build_site()
从R终端和RStudio正常渲染。
更新R后,我的网站仍使用blogdown::serve_site()
或blogdown::build_site()
进行渲染,但是它们未格式化(在R和RStudio中会发生这种情况)。例如,this website通常呈现如下:https://www.vitrografista.com/,现在呈现:
这是我的xfun::session_info('blogdown')
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.6
Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
Package version:
base64enc_0.1.3 BH_1.72.0.3 blogdown_0.20 bookdown_0.20
digest_0.6.25 evaluate_0.14 glue_1.4.2 graphics_4.0.2
grDevices_4.0.2 highr_0.8 htmltools_0.5.0 httpuv_1.5.4
jsonlite_1.7.1 knitr_1.29 later_1.1.0.1 magrittr_1.5
markdown_1.1 methods_4.0.2 mime_0.9 promises_1.1.1
R6_2.4.1 Rcpp_1.0.5 rlang_0.4.7 rmarkdown_2.3
servr_0.18 stats_4.0.2 stringi_1.5.3 stringr_1.4.0
tinytex_0.25 tools_4.0.2 utils_4.0.2 xfun_0.16
yaml_2.2.1
我的blogdown::hugo_version()
是“ 0.74.3”
我也跑了blogdown::update_hugo()
但是那一次失败了:
The latest Hugo version is 0.75.1
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.75.1/hugo_extended_0.75.1_macOS-64bit.tar.gz'
Content type 'application/octet-stream' length 15320266 bytes (14.6 MB)
==================================================
downloaded 14.6 MB
Hugo has been installed to /Users/luna/Library/Application Support/Hugo
Warning message:
In file.copy(exec, destdir, overwrite = TRUE) :
problem copying ./hugo to /usr/local/bin/hugo: Permission denied
感谢您的宝贵时间。任何帮助将不胜感激!