Does not appear to be a themeissue
I have the same problem and it has nothing to do with a missing theme. I hope that it is easy to reproduce:
- Method: I follow the recommended workflow of the blogdown book:
After creating a new project in RStudio, I type into the console the code
blogdown::new_site(theme = 'gcushen/hugo-academic')
The system answered:
blogdown::new_site(theme = 'gcushen/hugo-academic') trying URL 'https://github.com/gcushen/hugo-academic/archive/master.zip' downloaded 1.2 MB Rendering content/post/2015-07-23-r-rmarkdown.Rmd
And I got immediately the index of the site. I could not manage to see the html version of the site.
- Method: Creating a Rstudio project with "Creating a new website with Hugo and blogdown"
I wrote in the field "Hugo theme":
gcushen/hugo-academic and left all the other fields unchanged. The system answered:
trying URL 'https://github.com/gcushen/hugo-academic/archive/master.zip' Content type 'application/zip' length 1294225 bytes (1.2 MB) ================================================== downloaded 1.2 MB >
and restarted R.
Now I can observe the following problems:
- When I tried
blogdown::serve_site()I got the index of the site.
- When I tried I the „Build Website“ button I got
~/Documents/Meine-Repos/Test-Repos/test-academic/public/index.html not found
- When I tried More -> "CleanAll" I got
Removing files: blogdown public content/post/2015-07-23-r-rmarkdown.html static/rmarkdown-libs static/post/2015-07-23-r-rmarkdown_files
and in the viewer pane:
ERROR: cannot change working directory
Maybe it has to do with the path and/or the .Rmd files. When I deleted all .Rmd files of a previous working hugo-academic installation I succeeded to return to the to the website with
After deleting all .Rmd files in the virgen hugo-academic installation the error message of the "Clean All" button changed to:
==> rmarkdown::clean_site() Error in file.exists(files) : invalid 'file' argument Calls: <Anonymous> -> <Anonymous> -> clean_targets -> file.exists Execution halted Exited with status 1.
Here is my sessionInfo():
R version 3.5.1 (2018-07-02) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS High Sierra 10.13.5 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib locale:  en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages:  stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached):  Rcpp_0.12.17 bookdown_0.7 later_0.7.3 digest_0.6.15 rprojroot_1.3-2  R6_2.2.2 backports_1.1.2 magrittr_1.5 evaluate_0.10.1 blogdown_0.8  stringi_1.2.3 rstudioapi_0.7 promises_1.0.1 rmarkdown_1.10 tools_3.5.1  servr_0.10 stringr_1.3.1 rsconnect_0.8.8 httpuv_22.214.171.124 xfun_0.3  yaml_2.1.19 compiler_3.5.1 htmltools_0.3.6 knitr_1.20
I have tried all this out with the hugo-academic version 2.3 (July 2018)
Any help would very much appreciated.