[x] used blogdown::check_site() function to diagnose your site and corrected potential problems?
[x] included a minimal, self-contained, and reproducible example?
[x] pasted the output from xfun::session_info('blogdown') in your issue?
[x] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
[x] installed and tested your bug with the development version of the blogdown package using remotes::install_github('rstudio/blogdown') ?
Description
An error occurred when I used blogdown::new_site():
> blogdown::new_site(theme="lxndrblz/anatole")
― Creating your new site
► The directory '.' is not empty. Create the site anyway? (y/n) y
| Installing the theme lxndrblz/anatole from github.com
trying URL 'https://github.com/lxndrblz/anatole/archive/HEAD.tar.gz'
Content type 'application/x-gzip' length unknown
downloaded 1.9 MB
Error in dir.exists(x) : invalid filename argument
And change the theme to yihui/hugo-ivy as similar error.
blogdown::check_site() output
> blogdown::check_site()
― Running a series of automated checks for your blogdown website project...
-------------------------------------------------------------------------------------------
○ A successful check looks like this.
● [TODO] A check that needs your attention looks like this.
| Let's check out your blogdown site!
-------------------------------------------------------------------------------------------
― Checking config/_default/config.toml
| Checking "baseURL" setting for Hugo...
● [TODO] Set "baseURL" to "/" if you do not yet have a domain.
| Checking "ignoreFiles" setting for Hugo...
● [TODO] Set "ignoreFiles" to ["\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
| Checking setting for Hugo's Markdown renderer...
○ All set! Found the "unsafe" setting for goldmark.
― Check complete: config/_default/config.toml
― Checking index.Rmd in the root directory
● [TODO] index.Rmd is missing; create one with blogdown:::create_index().
― Check complete: index.Rmd
― Checking .gitignore
● [TODO] .gitignore was not found. You may want to add this.
― Checking Hugo
| Checking Hugo version...
○ Found 2 versions of Hugo. You are using Hugo 0.103.1.
| Checking .Rprofile for Hugo version used by blogdown...
| Hugo version not set in .Rprofile.
● [TODO] Use blogdown::config_Rprofile() to create .Rprofile for the current project.
● [TODO] Set options(blogdown.hugo.version = "0.103.1") in .Rprofile and restart R.
― Check complete: Hugo
― Checking netlify.toml...
● [TODO] netlify.toml was not found. Use blogdown::config_netlify() to create file.
― Checking content files
| Checking for validity of YAML metadata in posts...
● [TODO] Found invalid YAML metadata in the following files:
content/english/post/rich-content.md (Reason: Parser error: did not find expected <document start> at line 6, column 1)
Please fix the YAML metadata of these files.
| Checking for previewed content that will not be published...
○ Found 0 files with future publish dates.
○ Found 0 files marked as drafts.
| Checking your R Markdown content...
○ All R Markdown files have been knitted.
○ All R Markdown output files are up to date with their source files.
| Checking for .html/.md files to clean up...
○ Found 0 duplicate .html output files.
○ Found 0 incompatible .html files to clean up.
| Checking for the unnecessary 'content/' directory in theme...
○ Great! Your theme does not contain the content/ directory.
― Check complete: Content
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
[x] formatted your issue so it is easier for us to read?
[x] used
blogdown::check_site()
function to diagnose your site and corrected potential problems?[x] included a minimal, self-contained, and reproducible example?
[x] pasted the output from
xfun::session_info('blogdown')
in your issue?[x] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
[x] installed and tested your bug with the development version of the blogdown package using
remotes::install_github('rstudio/blogdown')
?Description
An error occurred when I used
blogdown::new_site()
:And change the theme to
yihui/hugo-ivy
as similar error.blogdown::check_site()
outputxfun::session_info('blogdown')
out put