rstudio / blogdown

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

Cannot start new post #741

Closed jebyrnes closed 1 year ago

jebyrnes commented 1 year ago

Whenever I run blogdown:::new_post_addin() I get the following error:


Listening on http://127.0.0.1:5836
Warning: Error in : 'alnum_id' is not an exported object from 'namespace:xfun'
  54: blogdown:::dash_filename
  53: ::
shiny
observe
  52: <observer>
   9: shiny::runApp
   8: shiny::runGadget
   7: eval
   6: eval
   5: sys.source
   2: source_addin
   1: blogdown:::new_post_addin

And the setup window goes away. Hrm.

Running R version 4.2.1

> sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Ventura 13.0.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] blogdown_1.15.1 shiny_1.7.3    

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.9        jquerylib_0.1.4   bslib_0.4.0      
 [4] compiler_4.2.1    later_1.3.0       tools_4.2.1      
 [7] digest_0.6.30     memoise_2.0.1     jsonlite_1.8.3   
[10] evaluate_0.17     lifecycle_1.0.3   viridisLite_0.4.1
[13] rlang_1.0.6       cli_3.4.1         rstudioapi_0.14  
[16] yaml_2.3.5        parallel_4.2.1    xfun_0.33        
[19] fastmap_1.1.0     kableExtra_1.3.4  httr_1.4.4       
[22] stringr_1.4.1     xml2_1.3.3        knitr_1.40       
[25] sass_0.4.2        systemfonts_1.0.4 webshot_0.5.3    
[28] svglite_2.1.0     glue_1.6.2        R6_2.5.1         
[31] rmarkdown_2.16    bookdown_0.30     magrittr_2.0.3   
[34] scales_1.2.1      promises_1.2.0.1  htmltools_0.5.3  
[37] ellipsis_0.3.2    rvest_1.0.3       mime_0.12        
[40] colorspace_2.0-3  xtable_1.8-4      httpuv_1.6.5     
[43] miniUI_0.1.1.1    stringi_1.7.8     munsell_0.5.0    
[46] cachem_1.0.6      crayon_1.5.2     

Should I just figure out how to migrate to Quarto at this point?

cderv commented 1 year ago

Warning: Error in : 'alnum_id' is not an exported object from 'namespace:xfun'

It seems you are not using the correct version of xfun for your project, with the version of blogdown used.
xfun::alnum_id was added in xfun v34 See https://github.com/yihui/xfun/releases/tag/v0.34

This function is used in blogdown since https://github.com/rstudio/blogdown/commit/560ca047a3c65450f6b62483beea6b12566d53d8 so version 1.14

Please update xfun.

We will update DESCRIPTION file so that xfun min requirement is updated. It seems we missed that.