Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error: Error building site #75

Open
pherephobia opened this issue Feb 4, 2021 · 2 comments
Open

Error: Error building site #75

pherephobia opened this issue Feb 4, 2021 · 2 comments

Comments

@pherephobia
Copy link

I followed the instruction: https://hugo-apero-docs.netlify.app/collection/day02/02-blogdown/

My session information is attached below:

  • Session info ------------------------------------------------------------------
    setting value
    version R version 4.0.3 (2020-10-10)
    os Windows 10 x64
    system x86_64, mingw32
    ui RStudio
    language (EN)
    collate English_United States.1252
    ctype English_United States.1252
    tz America/New_York
    date 2021-02-04

  • Packages ----------------------------------------------------------------------
    ! package * version date lib source
    assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.0)
    blogdown 1.1.10 2021-02-04 [1] Github (rstudio/blogdown@ef9468e)
    bookdown 0.21 2020-10-13 [1] CRAN (R 4.0.3)
    cli 2.2.0 2020-11-20 [1] CRAN (R 4.0.3)
    crayon 1.3.4 2017-09-16 [1] CRAN (R 4.0.0)
    D digest 0.6.27 2020-10-24 [1] CRAN (R 4.0.3)
    evaluate 0.14 2019-05-28 [1] CRAN (R 4.0.0)
    fansi 0.4.2 2021-01-15 [1] CRAN (R 4.0.3)
    D glue 1.4.2 2020-08-27 [1] CRAN (R 4.0.2)
    htmltools 0.5.1.1 2021-01-22 [1] CRAN (R 4.0.3)
    httpuv 1.5.5 2021-01-13 [1] CRAN (R 4.0.3)
    jsonlite 1.7.2 2020-12-09 [1] CRAN (R 4.0.3)
    knitr 1.31 2021-01-27 [1] CRAN (R 4.0.3)
    later 1.1.0.1 2020-06-05 [1] CRAN (R 4.0.0)
    magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.0.3)
    processx 3.4.5 2020-11-30 [1] CRAN (R 4.0.3)
    D promises 1.1.1 2020-06-09 [1] CRAN (R 4.0.0)
    ps 1.5.0 2020-12-05 [1] CRAN (R 4.0.3)
    R6 2.5.0 2020-10-28 [1] CRAN (R 4.0.3)
    Rcpp 1.0.6 2021-01-15 [1] CRAN (R 4.0.3)
    rlang 0.4.10 2020-12-30 [1] CRAN (R 4.0.3)
    rmarkdown 2.6.6 2021-02-03 [1] Github (rstudio/rmarkdown@6566366)
    rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.0.3)
    servr 0.21 2020-12-14 [1] CRAN (R 4.0.3)
    sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.0.0)
    withr 2.4.1 2021-01-26 [1] CRAN (R 4.0.3)
    xfun 0.20 2021-01-06 [1] CRAN (R 4.0.3)
    yaml 2.2.1 2020-02-01 [1] CRAN (R 4.0.0)

[1] C:/Users/phere/Dropbox/My PC (DESKTOP-5O211OK)/Documents/R/win-library/4.0
[2] C:/Program Files/R/R-4.0.3/library

D -- DLL MD5 mismatch, broken installation.


What I did:

  • I installed the hugo version 0.80.0.
  • I installed the latest blogdown

packageVersion("blogdown")
[1] ‘1.1.10’

And I get the error message when I try to blogdown::serve_site()

library(blogdown)
new_site(dir = ".", theme = "apreshill/blogophonic")
― Creating your new site
| Installing the theme apreshill/blogophonic from github.com
trying URL 'https://github.com/apreshill/blogophonic/archive/main.tar.gz'
Content type 'application/x-gzip' length unknown
downloaded 34.8 MB

| Adding the sample post to content/blog/2020-12-01-r-rmarkdown/index.Rmd
| Converting all metadata to the YAML format
| Adding netlify.toml in case you want to deploy the site to Netlify
● [TODO] The file 'netlify.toml' exists, and I will not overwrite it. If you want to overwrite it, you may call blogdown::config_netlify() by yourself.
| Adding .Rprofile to set options() for blogdown
― The new site is ready
○ To start a local preview: use blogdown::serve_site(), or the RStudio add-in "Serve Site"
○ To stop a local preview: use blogdown::stop_server(), or restart your R session

Want to serve and preview the site now? (y/n)
blogdown:::preview_site()
Launching the server via the command:
C:/Users/phere/AppData/Roaming/Hugo/0.80.0/hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-apero -D -F --navigateToChanged
Error: Error building site: failed to render pages: render of "page" failed: "C:\Users\phere\Dropbox\Scholar\0_personal\HP\nesite\themes\hugo-apero\layouts_default\single.html:8:173": execute of template failed: template: _default/single.html:8:173: executing "main" at <.>: range can't iterate over R

I think I should get the same blog at least in the local (which is not public). I have no idea why the page rendering gets errors.

@apreshill
Copy link
Collaborator

Welp 😭

That is because those are not real instructions- those are placeholders for theme testing that I forgot about! The theme is currently a WIP without good docs, so I'll add more signposts around that.

The actual real workshop materials are here:
https://iyo-rstudio-global.netlify.app/collection/day02/

But even those are a bit out of date as I moved the repos to this new organization instead of under my personal account.

@pherephobia
Copy link
Author

@apreshill Oh, I see. I will wait for the better guidelines to be published. The theme is fascinating that makes me consider moving from academic-Hugo. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants