问题渲染雨果锂主题博客向下,“拒绝访问”

问题描述

我正在尝试使用 blogdown 更新网站。但是,渲染失败。网站存储库位于this link

运行blogdown:::serve_site()时,出现以下错误

Start building sites … 
ERROR 2020/10/07 15:19:06 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\2020\10\03\estadística-descriptiva-ejercicio\index.html: Access is denied.
ERROR 2020/10/07 15:19:06 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\index.html: Access is denied.
ERROR 2020/10/07 15:19:06 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\post\index.html: Access is denied.
ERROR 2020/10/07 15:19:06 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\categories\index.html: Access is denied.
Total in 366 ms
Error: Error building site: Failed to render pages: open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\about\index.html: Access is denied.
Start building sites … 
ERROR 2020/10/07 15:19:07 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\2020\10\03\estadística-descriptiva-ejercicio\index.html: Access is denied.
ERROR 2020/10/07 15:19:07 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\2020\02\10\estadística-desciptiva-en-python\index.html: Access is denied.
ERROR 2020/10/07 15:19:07 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\post\index.html: Access is denied.
ERROR 2020/10/07 15:19:07 open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\categories\index.html: Access is denied.
Total in 390 ms
Error: Error building site: Failed to render pages: open C:\Users\jaime\Documents\R\EstadisticaDescriptiva\public\about\index.html: Access is denied.
El sistema no puede encontrar la ruta especificada.
Error in shell(cmd,mustWork = TRUE,intern = intern) : 
  '"C:\Users\jaime\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" --themesDir themes -t hugo-lithium' execution Failed with error code 1

我尝试从一开始就使用blogdown::new_site(theme = 'usjrutheiser/hugo-lithium-theme')创建一个新网站,但是出现以下错误

Error in if (dir_exists(expdir)) if (theme_example) { : 
  argument is of length zero
In addition: Warning messages:
1: In download.file(url,output,...,method = method) :
  cannot open URL 'https://github.com/usjrutheiser/hugo-lithium-theme/archive/master.tar.gz': HTTP status was '404 Not Found'
2: In download.file(url,method = method) :
  cannot open URL 'https://github.com/usjrutheiser/hugo-lithium-theme/archive/master.tar.gz': HTTP status was '404 Not Found'
3: In download.file(url,method = method) :
  cannot open URL 'https://github.com/usjrutheiser/hugo-lithium-theme/archive/master.tar.gz': HTTP status was '404 Not Found'
4: In utils::untar(zipfile,exdir = tmpdir) :
  ‘tar.exe -xf "2ff459957c97master.tar.gz" -C "2ff46b705392"’ returned error code 1

我在具有R 3.6.3的旧PC上渲染了该站点,并且可以正常工作,但在我的新PC(R 4.0.2)中却没有。 有谁知道“拒绝访问错误”的含义?这些错误如何解决


编辑

我将其他存储库用于锂主题,并使用RStudio进行了创建

NewProject

但是,我遇到同样的问题

Congratulations! Your new Hugo site is created in C:\Users\jaime\Documents\R\EjemplosEstadística.

Just a few more steps and you're ready to go:

1. Download a theme into the same-named folder.
   Choose a theme from https://themes.gohugo.io/ or
   create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
   with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".

Visit https://gohugo.io/ for quickstart guide and full documentation.
trying URL 'https://github.com/yihui/hugo-lithium/archive/master.tar.gz'
downloaded 109 KB

processing 7 content files
Error: Failed to save file "C:\\Users\\jaime\\Documents\\R\\EjemplosEstadística\\content\\post\\2016-12-30-hello-markdown.md":: open C:\Users\jaime\Documents\R\EjemplosEstadística\content\post\2016-12-30-hello-markdown.md: Access is denied.
processing 7 content files
Error: Failed to save file "C:\\Users\\jaime\\Documents\\R\\EjemplosEstadística\\content\\post\\2016-12-30-hello-markdown.md":: open C:\Users\jaime\Documents\R\EjemplosEstadística\content\post\2016-12-30-hello-markdown.md: Access is denied.
processing 7 content files
Error: Failed to save file "C:\\Users\\jaime\\Documents\\R\\EjemplosEstadística\\content\\post\\2016-12-30-hello-markdown.md":: open C:\Users\jaime\Documents\R\EjemplosEstadística\content\post\2016-12-30-hello-markdown.md: Access is denied.
Error in shell(cmd,intern = intern) : 
  '"C:\Users\jaime\AppData\Roaming\Hugo\hugo.exe" convert toYAML --unsafe' execution Failed with error code 65535

解决方法

发生这种问题是因为防病毒和防火墙应用程序(我没有告诉您我正在使用Windows 10)。以前,我暂时禁用了防病毒软件,但没有用。

解决方案是为R和RStudio添加一个异常,而不是hugo.exe

最美好的祝福。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...