Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

author-file-template.md not found? #61

Open
steffilazerte opened this issue Apr 5, 2023 · 3 comments
Open

author-file-template.md not found? #61

steffilazerte opened this issue Apr 5, 2023 · 3 comments

Comments

@steffilazerte
Copy link
Collaborator

steffilazerte commented Apr 5, 2023

Hi @maelle!

This was my first time trying roblog::ro_blog_post_author(), and it couldn't find the template file. I'm not sure if this is because we changed the Blog Guide or roblog?

Thank you!

> roblog::ro_blog_post_author()
Error in `gh_process_response()`:
! GitHub API error (404): Not Found
✖ URL not found: <https://api.github.com/repos/ropensci-org/blog-guidance/contents/templates/author-file-template.md>
ℹ Read more at <https://docs.github.com/rest/reference/repos#get-repository-content>
Run `rlang::last_trace()` to see where the error occurred.
rlang::last_trace()
> rlang::last_trace()
<error/github_error>
Error in `gh_process_response()`:
! GitHub API error (404): Not Found
✖ URL not found: <https://api.github.com/repos/ropensci-org/blog-guidance/contents/templates/author-file-template.md>
ℹ Read more at <https://docs.github.com/rest/reference/repos#get-repository-content>
---
Backtrace:
    ▆
 1. └─roblog::ro_blog_post_author()
 2.   └─roblog:::get_tmpl("author-file-template.md")
 3.     └─gh::gh(...)
 4.       └─gh:::gh_process_response(raw)
Run rlang::last_trace(drop = FALSE) to see 3 hidden frames.
Session Info
> devtools::session_info()
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.2.3 (2023-03-15)
 os       Ubuntu 22.04.2 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language en_CA:en
 collate  en_CA.UTF-8
 ctype    en_CA.UTF-8
 tz       America/Winnipeg
 date     2023-04-05
 rstudio  2023.03.0+386 Cherry Blossom (desktop)
 pandoc   2.19.2 @ /usr/lib/rstudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version date (UTC) lib source
 cachem        1.0.7   2023-02-24 [1] CRAN (R 4.2.3)
 callr         3.7.3   2022-11-02 [1] CRAN (R 4.2.2)
 cli           3.6.1   2023-03-23 [1] CRAN (R 4.2.3)
 crayon        1.5.2   2022-09-29 [1] CRAN (R 4.2.2)
 curl          5.0.0   2023-01-12 [1] CRAN (R 4.2.2)
 devtools      2.4.5   2022-10-11 [1] CRAN (R 4.2.2)
 digest        0.6.31  2022-12-11 [1] CRAN (R 4.2.2)
 ellipsis      0.3.2   2021-04-29 [1] CRAN (R 4.2.2)
 evaluate      0.20    2023-01-17 [1] CRAN (R 4.2.2)
 fastmap       1.1.1   2023-02-24 [1] CRAN (R 4.2.3)
 fs            1.6.1   2023-02-06 [1] CRAN (R 4.2.2)
 generics      0.1.3   2022-07-05 [1] CRAN (R 4.2.2)
 gh            1.3.1   2022-09-08 [1] CRAN (R 4.2.2)
 gitcreds      0.1.2   2022-09-08 [1] CRAN (R 4.2.2)
 glue          1.6.2   2022-02-24 [1] CRAN (R 4.2.2)
 htmltools     0.5.5   2023-03-23 [1] CRAN (R 4.2.3)
 htmlwidgets   1.6.1   2023-01-07 [1] CRAN (R 4.2.2)
 httpuv        1.6.8   2023-01-12 [1] CRAN (R 4.2.2)
 httr          1.4.4   2022-08-17 [1] CRAN (R 4.2.2)
 jsonlite      1.8.4   2022-12-06 [1] CRAN (R 4.2.2)
 knitr         1.42    2023-01-25 [1] CRAN (R 4.2.2)
 later         1.3.0   2021-08-18 [1] CRAN (R 4.2.2)
 lifecycle     1.0.3   2022-10-07 [1] CRAN (R 4.2.2)
 lubridate     1.9.2   2023-02-10 [1] CRAN (R 4.2.2)
 magrittr      2.0.3   2022-03-30 [1] CRAN (R 4.2.2)
 memoise       2.0.1   2021-11-26 [1] CRAN (R 4.2.2)
 mime          0.12    2021-09-28 [1] CRAN (R 4.2.2)
 miniUI        0.1.1.1 2018-05-18 [1] CRAN (R 4.2.2)
 pak           0.4.0   2023-01-15 [1] CRAN (R 4.2.2)
 pkgbuild      1.4.0   2022-11-27 [1] CRAN (R 4.2.2)
 pkgload       1.3.2   2022-11-16 [1] CRAN (R 4.2.2)
 prettyunits   1.1.1   2020-01-24 [1] CRAN (R 4.2.2)
 processx      3.8.0   2022-10-26 [1] CRAN (R 4.2.2)
 profvis       0.3.7   2020-11-02 [1] CRAN (R 4.2.2)
 promises      1.2.0.1 2021-02-11 [1] CRAN (R 4.2.2)
 promoutils    0.0.2   2023-04-05 [1] local
 ps            1.7.3   2023-03-21 [1] CRAN (R 4.2.3)
 purrr         1.0.1   2023-01-10 [1] CRAN (R 4.2.2)
 R6            2.5.1   2021-08-19 [1] CRAN (R 4.2.2)
 Rcpp          1.0.10  2023-01-22 [1] CRAN (R 4.2.2)
 remotes       2.4.2   2021-11-30 [1] CRAN (R 4.2.2)
 rlang         1.1.0   2023-03-14 [1] CRAN (R 4.2.3)
 rmarkdown     2.21    2023-03-26 [1] CRAN (R 4.2.3)
 roblog        0.1.0   2023-02-15 [1] Github (ropensci-org/roblog@cc3866e)
 rstudioapi    0.14    2022-08-22 [1] CRAN (R 4.2.2)
 sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.2.2)
 shiny         1.7.4   2022-12-15 [1] CRAN (R 4.2.2)
 stringi       1.7.12  2023-01-11 [1] CRAN (R 4.2.2)
 stringr       1.5.0   2022-12-02 [1] CRAN (R 4.2.2)
 timechange    0.2.0   2023-01-11 [1] CRAN (R 4.2.2)
 urlchecker    1.0.1   2021-11-30 [1] CRAN (R 4.2.2)
 usethis       2.1.6   2022-05-25 [1] CRAN (R 4.2.2)
 vctrs         0.6.1   2023-03-22 [1] CRAN (R 4.2.3)
 xfun          0.38    2023-03-24 [1] CRAN (R 4.2.3)
 xtable        1.8-4   2019-04-21 [1] CRAN (R 4.2.2)
 yaml          2.3.7   2023-01-23 [1] CRAN (R 4.2.2)

 [1] /home/steffi/R/x86_64-pc-linux-gnu-library/4.2
 [2] /usr/local/lib/R/site-library
 [3] /usr/lib/R/site-library
 [4] /usr/lib/R/library
@maelle
Copy link
Contributor

maelle commented Apr 6, 2023

Ouch, it seems it doesn't work, I'm not sure it ever did now. 🤔 But it's a good time to add the functionality for real!

The archetype lives in https://github.com/ropensci/roweb3/blob/main/archetypes/author-file/_index.md?plain=1

What would you expect the function to do, what would you input? Someone's GitHub username? (I'm guessing that in many cases, from there we can get the name, website, etc.)

@maelle
Copy link
Contributor

maelle commented Jun 6, 2023

@steffilazerte Friendly reminder about the questions above 😸

@steffilazerte
Copy link
Collaborator Author

Sorry for the delay!

I think I expected that you would give it the name you want to use (not always the GitHub name). And it would create the correct folder and index file and fill in the name, and open the file (can that happen?) for the user to complete the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants