karthik / binder-test

15 stars 7 forks source link

generate_badge() fails #6

Open seblammers opened 4 years ago

seblammers commented 4 years ago

Hi Karthik! When I try to run generate_badge() it gives me the following error message:

Error: Invalid block specification. Must start with <!-- badges: start --> and end with <!-- badges: end -->

My session info is:

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

Matrix products: default

locale: [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252

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

other attached packages: [1] holepunch_0.1.28.9000

loaded via a namespace (and not attached):
[1] cliapp_0.1.1 Rcpp_1.0.5 git2r_0.27.1 pillar_1.4.6
[5] compiler_4.0.3 prettyunits_1.1.1 remotes_2.2.0 tools_4.0.3
[9] progress_1.2.2 packrat_0.5.0 pkgbuild_1.1.0 lifecycle_0.2.0
[13] tibble_3.0.4 jsonlite_1.7.1 lubridate_1.7.9 pkgconfig_2.0.3
[17] rlang_0.4.8 cli_2.1.0 rstudioapi_0.11 curl_4.3
[21] withr_2.3.0 stringr_1.4.0 httr_1.4.2 xml2_1.3.2
[25] desc_1.2.0 generics_0.0.2 vctrs_0.3.4 fs_1.5.0
[29] hms_0.5.3 rprojroot_1.3-2 glue_1.4.2 R6_2.4.1
[33] gh_1.1.0 processx_3.4.4 fansi_0.4.1 callr_3.5.0
[37] selectr_0.4-2 magrittr_1.5 ellipsis_0.3.1 usethis_1.6.3
[41] backports_1.1.10 ps_1.4.0 assertthat_0.2.1 renv_0.12.0
[45] ini_0.3.1 stringi_1.5.3 crayon_1.3.4

Hope this helps. This looks like an awesome project and I would love to make it run for me as well :)

Cheers from across the pond, Sebastian

karthik commented 4 years ago

Hi @seblammers Thanks for raising the issue. I can confirm this problem. I'll investigate shortly and update the issue soon.

Waves back from the opposite side of pond.

seblammers commented 3 years ago

Hi @karthik , if you have any pointers on how I could help in this issue, I'd be happy to try stuff out.

Seems like the problem lies with usethis::use_badge() inside your generate_badge()-function...?

Cheers, Sebastian

frederic-santos commented 3 years ago

Hi @karthik , if you have any pointers on how I could help in this issue, I'd be happy to try stuff out.

Simply an extra tab that should not be there, see my issue here. Remove this tab and everything should work fine. (However @seblammers , I would be curious about the main point of my issue: since you are also trying to use R 4.0.3, do you manage to do that with this template?)

tataphani commented 2 years ago

Hi @karthik , I am getting this error too can you please help me i Please update the description fields, particularly the title, description and author

generate_badge() Error: Invalid block specification. Must start with <!-- badges: start --> and end with <!-- badges: end --> sessionInfo() R version 4.1.0 (2021-05-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages: [1] viridis_0.6.2 viridisLite_0.4.0 ggplot2_3.3.5 tidyr_1.2.0
[5] lubridate_1.8.0 dataRetrieval_2.7.10 dplyr_1.0.7 holepunch_0.1.28.9000

loaded via a namespace (and not attached): [1] progress_1.2.2 tidyselect_1.1.1 remotes_2.4.2 purrr_0.3.4 sf_1.0-2
[6] colorspace_2.0-2 vctrs_0.3.8 generics_0.1.2 usethis_2.1.5 utf8_1.2.2
[11] rlang_1.0.1 e1071_1.7-9 pillar_1.7.0 glue_1.6.1 withr_2.4.3
[16] DBI_1.1.1 selectr_0.4-2 ini_0.3.1 lifecycle_1.0.1 stringr_1.4.0
[21] munsell_0.5.0 gtable_0.3.0 curl_4.3.2 class_7.3-19 fansi_1.0.2
[26] Rcpp_1.0.8 KernSmooth_2.23-20 renv_0.15.2 scales_1.1.1 classInt_0.4-3
[31] desc_1.4.0 jsonlite_1.7.3 fs_1.5.2 gridExtra_2.3 hms_1.1.1
[36] stringi_1.7.6 gh_1.3.0 cliapp_0.1.1 rprojroot_2.0.2 grid_4.1.0
[41] cli_3.1.1 tools_4.1.0 magrittr_2.0.2 proxy_0.4-26 tibble_3.1.6
[46] crayon_1.5.0 pkgconfig_2.0.3 ellipsis_0.3.2 xml2_1.3.3 prettyunits_1.1.1 [51] assertthat_0.2.1 httr_1.4.2 rstudioapi_0.13 R6_2.5.1 units_0.7-2
[56] compiler_4.1.0