Comments (4)
If I remembering correctly, the current behaviour is intentional. Basically, we've got the contributor data in two forms: a normal character vector and formatted markdown. So we send the formatted markdown out as a code snippet which should also put it on the clipboard and then invisibly return the character vector. I think our typical use of this is when writing our blog posts and, when you're authoring the post, you're in the blog repo. So it makes sense to go execute use_tidy_thanks()
in the relevant package repo, then paste the result into the draft blog post. So, it's a very interactive workflow for us.
Anyhow, maybe this context is useful for how we got where we are.
from usethis.
I think the first step (and maybe only step) is to work out the incantation that allows your usage without any changes in usethis.
I see two approaches:
x <- capture.output(
usethis::with_project(
"~/rrr/reprex",
use_tidy_thanks()
),
type = "message"
)
plus some fiddling with x
to get the line you want.
Or you just inlining this bit:
contrib_link <- glue("[@{contributors}](https://github.com/{contributors})")
You can still make a PR, but I can't just change the return value of use_tidy_thanks()
for fear that someone else has already done some programmatic work around the status quo. What change do you have in mind and would it be a breaking change for other people?
from usethis.
Thanks @jennybc for the super fast response! 😄 That makes a lot of sense. Some of our community members use it this way too and it's great!
We are trying to now also use this programatically, and running into the limits of the copy-paste approach. It would be amazing if we could also opt to use it programatically and I would be happy to open a PR with the slight adjustment to make that possible. If you are open to it, I could make a PR with a proposal - if you prefer to not change it, all good and feel free to close this issue. 😊
from usethis.
You're completely right - I apologize for wasting your time on this. I completely overlooked that it is trivial to transform this output into what I need.
Thank you for your patience with me 💛
from usethis.
Related Issues (20)
- Should `browse_github_pulls()` and `browse_github_issues()`, `browse_github_actions()` default to using upstream when a fork? HOT 1
- `git_conflict_report()` could be more informative HOT 1
- Pull request helpers as separate package? HOT 1
- Remove `revdepcheck::cloud_check()` from release issue checklist? HOT 2
- `usethis::use_tibble()` does not add `@importFrom tibble tibble` to package-level doc HOT 6
- `use_coverage()` should advice to set a token in repo?
- Transitioning from devtools to remotes HOT 4
- feat: diffify badge HOT 1
- export `compute_name()` HOT 1
- `use_tidy_base_pipe()` HOT 1
- `pr_` performance HOT 1
- Update short link in description of `tidy-dev-day 🤓` label HOT 1
- Which repo to target is asked many times without more context (e.g in `use_release_issue()`) HOT 3
- Update http errors we're trying to catch for httr2 HOT 2
- Release usethis 3.0.0
- Should be clearer when cancelling HOT 2
- Question: should `usethis::use_apache_license()` support a `copyright_holder` parameter? HOT 3
- Funky bullet in `git_sitrep()` HOT 1
- `use_readme_rmd()` does not create pre-commit hook if `README.Rmd` is not overwritten HOT 2
- Docs: grammatical error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usethis.