rstudio / blogdown

Create Blogs and Websites with R Markdown
https://pkgs.rstudio.com/blogdown/
1.73k stars 335 forks source link

Problem with hugo-academic theme #443

Closed meersel closed 4 years ago

meersel commented 4 years ago

By filing an issue to this repo, I promise that

meersel commented 4 years ago

Problem with the gcushen/hugo-academic theme.

R version 3.6.3 (2020-02-29) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363)

blogdown_0.18 blogdown::hugo_version() [1] ‘0.68.3’

See script and output below install_theme("gcushen/hugo-academic", theme_example = TRUE, update_config = TRUE) trying URL 'https://github.com/gcushen/hugo-academic/archive/master.zip' Content length 126 bytes downloaded 5.3 MB Error in utils::unzip(zipfile, exdir = tmpdir) : cannot open file 'be305ddb1d3f/hugo-academic-master/exampleSite/resources/_gen/images/authors/admin/avatar_hu52a603635ecebd45650b162dadabb4e5_12861_270x270_fill_q90_lanczos_center.jpg': No such file or directory

cderv commented 4 years ago

Duplicate of #433

cderv commented 4 years ago

I think your issue is a duplicate of #433. See comments there. This is an issue on windows with long path when doing unzip. Try installing in another directory with a shorter path so that it can unzip correctly. It is possible that R tempdir() is enough. Hope it helps

yihui commented 4 years ago

https://github.com/rstudio/blogdown/issues/433#issuecomment-633145837