Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error occured after run blogdown::serve_site() #714

Closed
mrcongliu opened this issue Jul 8, 2022 · 2 comments
Closed

Error occured after run blogdown::serve_site() #714

mrcongliu opened this issue Jul 8, 2022 · 2 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@mrcongliu
Copy link

mrcongliu commented Jul 8, 2022

After run

new_site(theme="dillonzq/LoveIt")
blogdown::serve_site() 

in RStudio, it throws

Error in if (is.na(c3)) vars = c(vars, HUGO_IGNOREERRORS = "error-remote-getjson") : 
  the condition has length > 1

Also, I found the place that throws the error:

if (is.na(c3)) vars = c(vars, HUGO_IGNOREERRORS = 'error-remote-getjson')

Probably due to their loveit/config.yaml

ignoreErrors:
  - error-remote-getjson
  - error-missing-instagram-accesstoken
@yihui yihui moved this to Backlog in R Markdown Team Projects Jul 8, 2022
@yihui yihui moved this from Backlog to In Progress in R Markdown Team Projects Jul 8, 2022
@yihui yihui added the bug an unexpected problem or unintended behavior label Jul 8, 2022
@yihui yihui closed this as completed in 3122328 Jul 8, 2022
Repository owner moved this from In Progress to Done in R Markdown Team Projects Jul 8, 2022
@yihui
Copy link
Member

yihui commented Jul 8, 2022

Fixed now. Thanks a lot for the report!

@mrcongliu
Copy link
Author

Thanks for fixing this.

It worked after forcing the re-install of blogdown

if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("rstudio/blogdown",
                        ref = "3122328fe7757ef960a59fe4e8f79aae67238735", force = TRUE)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug an unexpected problem or unintended behavior
Projects
Archived in project
Development

No branches or pull requests

2 participants