blogdown::new_post doesn't work

when I use blogdown::new_post got the error below:
Error in new_content(file, kind, FALSE) :
Failed to create the file 'D:\renhu\github\blogR\content/2024-03-01-alistipes-indistinctus/'.
In addition: Warning message:
In system2(...) :
running command '"C:/Users/renhu/AppData/Roaming/Hugo/0.91.2/hugo.exe" new "D:\renhu\github\blogR\content/2024-03-01-alistipes-indistinctus/" --themesDir themes --theme starter-hugo-academic' had status 65535

I have updated the blogdown and hugo, but that's not work.
Here is my session

R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621), RStudio 1.4.1717

  LC_COLLATE=Chinese (Simplified)_China.936 
  LC_CTYPE=Chinese (Simplified)_China.936   
  LC_MONETARY=Chinese (Simplified)_China.936
  LC_TIME=Chinese (Simplified)_China.936    

Package version:
  base64enc_0.1.3    blogdown_1.19      bookdown_0.37     
  bslib_0.3.1        cli_3.6.1          colorspace_2.0-3  
  compiler_4.1.0     digest_0.6.31      dplyr_1.1.4       
  evaluate_0.23      fansi_1.0.3        farver_2.1.1      
  fastmap_1.1.0      fontawesome_0.5.2  fs_1.5.2          
  generics_0.1.3     ggplot2_3.5.0      glue_1.6.2        
  graphics_4.1.0     grDevices_4.1.0    grid_4.1.0        
  gtable_0.3.4       highr_0.10         htmltools_0.5.2   
  httpuv_1.6.9       isoband_0.2.7      jquerylib_0.1.4   
  jsonlite_1.8.4     knitr_1.45         labeling_0.4.3    
  later_1.3.0        lattice_0.20.45    lifecycle_1.0.4   
  magrittr_2.0.3     MASS_7.3.54        Matrix_1.3.4      
  methods_4.1.0      mgcv_1.8.38        mime_0.12         
  munsell_0.5.0      nlme_3.1.153       pillar_1.9.0      
  pkgconfig_2.0.3    promises_1.2.0.1   R6_2.5.1          
  rappdirs_0.3.3     RColorBrewer_1.1.3 Rcpp_1.0.10       
  rlang_1.1.2        rmarkdown_2.25     rstudioapi_0.15.0 
  sass_0.4.5         scales_1.3.0       servr_0.28        
  splines_3.6.1      stats_4.1.0        stringi_1.7.6     
  stringr_1.5.1      tibble_3.2.1       tidyselect_1.2.0  
  tinytex_0.49       tools_4.1.0        utf8_1.2.2        
  utils_4.1.0        vctrs_0.6.5        viridisLite_0.4.2 
  withr_3.0.0        xfun_0.39          yaml_2.3.5

I suppose the hugo couldn't find the right path, however, I have no idea how to fix it. Hope to get some help.

Thanks ~

Can you test with latest blogdown version and if possible dev version ?

You can install easily dev version from R-universe: personal package repositories for R!

If still issue, please report in blogdown Github repo. Thank you !

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.