Giter VIP home page Giter VIP logo

Comments (4)

jennybc avatar jennybc commented on August 26, 2024 1

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.

jennybc avatar jennybc commented on August 26, 2024 1

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("[&#x0040;{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.

chartgerink avatar chartgerink commented on August 26, 2024

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.

chartgerink avatar chartgerink commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.